patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - [Select] - for mutliple typeahead, need to click in the input area twice in order to type

Open jeff-phillips-18 opened this issue 1 year ago • 5 comments

Describe the problem When I first click into the input field, my focus is lost and I need to click again before I can type. On the doc page it retains focus from the first click (even after the menu is shown), but in the application and in the code sandbox for the page it does not.

Also, when I tab the toggle button for the drop down gets focus. I'm not sure that it should and the doc page it doesn't but it does for the code sandbox.

It would also be very helpful if all the code in the example were part of the component rather than requiring all applications to copy the example source code. It is quite a lot and needs to be done for every use of the component.

How do you reproduce the problem? Run the code sandbox from the docs page

Expected behavior I can click on the text input and begin typing

Is this issue blocking you? No. I can add a timeout to give focus to the input ref but that is hacky.

What is your product and what release date are you targeting? RHOAI 2.13

jeff-phillips-18 avatar Jul 05 '24 19:07 jeff-phillips-18

please verify that this is still an issue. We are unable to reproduce.

tlabaj avatar Aug 08 '24 15:08 tlabaj

Go to https://www.patternfly.org/components/menus/select#typeahead Open in codesandbox Click in the typeahead Notice that you cannot type what you are searching for until you click again (which also closes the menu)

jeff-phillips-18 avatar Aug 09 '24 16:08 jeff-phillips-18

It looks like codesandbox is running one version behind the latest PF release (it is on 5.3.3 when you pull it up and 5.3.4 does not have this issue).

kmcfaul avatar Aug 09 '24 17:08 kmcfaul

The docs still show running 5.3.3 for me.

jeff-phillips-18 avatar Aug 09 '24 18:08 jeff-phillips-18

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Oct 09 '24 11:10 github-actions[bot]

This issue has been closed because it has not had activity since being marked as stale.

github-actions[bot] avatar Oct 24 '24 11:10 github-actions[bot]