Bug 227429

Summary: Dismissing software keyboard causes <select> menu to pop up
Product: WebKit Reporter: Jeff Johnson <opendarwin>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: CLOSED INVALID    
Severity: Normal CC: akeerthi, mitz, wenson_hsieh
Priority: P2    
Version: Safari 14   
Hardware: iPhone / iPad   
OS: iOS 14   
Attachments:
Description Flags
Sample HTML reproduction case none

Description Jeff Johnson 2021-06-27 09:06:24 PDT
Created attachment 432352 [details]
Sample HTML reproduction case

Steps to reproduce:
1. Open attached HTML in Safari iOS.
2. Touch inside the <input> element to show the software keyboard.
3. Touch the keyboard widget to dismiss the software keyboard.

Actual results: The <select> element menu pops up.

Expected results: The <select> element menu does not pop up.

I can reproduce this bug with every configuration I've tested: iPhone and iPad devices, iOS 14, iOS 15 beta, and iOS 12.
Comment 1 Wenson Hsieh 2021-06-27 09:39:19 PDT
> 3. Touch the keyboard widget to dismiss the software keyboard.

To clarify — is this referring to the "Done" button on the software keyboard?
Comment 2 Jeff Johnson 2021-06-27 09:44:39 PDT
(In reply to Wenson Hsieh from comment #1)
> > 3. Touch the keyboard widget to dismiss the software keyboard.
> 
> To clarify — is this referring to the "Done" button on the software keyboard?

No, the ^ widget. The intention is to cancel and not enter any text into the input.
Comment 3 Wenson Hsieh 2021-06-27 09:54:33 PDT
(In reply to opendarwin from comment #2)
> (In reply to Wenson Hsieh from comment #1)
> > > 3. Touch the keyboard widget to dismiss the software keyboard.
> > 
> > To clarify — is this referring to the "Done" button on the software keyboard?
> 
> No, the ^ widget. The intention is to cancel and not enter any text into the
> input.

The ˄ and ˅ buttons above the software keyboard move focus between form controls. Pressing ˄ focuses the previous form control (in this case a select, which shows a popover or context menu, depending on iOS version).
Comment 4 Jeff Johnson 2021-06-27 09:58:04 PDT
You're right, I was looking at the wrong button to dismiss the keyboard. Sorry! I'm marking this bug as invalid.