AcceDe-Web/tablist

First letter of an input in a tab does not appear

KriKroff opened this issue · 2 comments

Hi,

My team have recently used your component to handle tabs.
There is a bad behavior when a tab containing a text input is displayed and the user click directly on it.
The first letter typed is ignored.

Here is an example : https://jsfiddle.net/57gxbe56/
Click directly on the input, then try to type "abc" only "bc" appears.

This wrong behavior comes from handlePanel calling HandlePanelFocus if no tab is selected.
HandlePanelFocus does a preventDefault on the keyBoardEvent.

enwin commented

Hello,

Thanks for your feedback, we're gonna have a look into it

enwin commented

Merged in master and updated on npm!

Hope you'll like it