Closed dragonlipz closed 2 weeks ago
Same is happening to me, thought the Dropdown may have an option to disable the navigation with first letters of the Items, but was not able to find any.
Please any update on this, or any solution i can work with for now @polnetwork @dragonlipz
Fixed in flowbite-react@0.10.0 release.
Steps to reproduce
vite react-ts project
flowbite-react@0.7.7
(was also occurring with previous versions of 0.7.x)App.tsx
contents withCode Example
at the end.onChange
handlerCurrent behavior
You will see the Key pressed value for
onKeyDown
andonKeyUp
but you will never see any output foronChange
. It appears theonChange
handler is being hijacked somewhere an not being called as a result.Non-AlphaNumeric keys seem to properly "act" in the field. (space, backspace, arrows move the cursor as expected)
Pasting a value into the field triggers
onChange
properly.Other
flowbite-react
controls such asTabs
,ToggleSwitch
,Checkbox
, etc., behave as expected.Attempting to type a the first character of one of the drop down values (in this case i) will jump you to a row starting with that character.
Expected behavior
input
andTextInput
controls would behave as normal. And I would be able to prevent the automatic search of items in the dropdown.Context
Code Example