nextui
nextui copied to clipboard
[BUG] - console error inside <Input> when hitting shift key
NextUI Version
2.2.9
Describe the bug
When hitting shift key inside <Input> component I'm receiving a console error.
VM41982:14 Uncaught TypeError: inputTypes.contains is not a function
at isTextElement (<anonymous>:14:31)
at <anonymous>:31:26
at <anonymous>:66:3
Seems that there is a usage of js builtin: contains method instead of includes
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
- Add <Input> component
- Hit shift keyboard
- Check console
Expected behavior
No error should be happen when hitting shift key.
Screenshots or Videos
Operating System Version
macOS 17.3
Browser
Chrome
I think this is a problem with react because I get this error even though I use pure input and react.
Hi @Berdugo1994, I was trying to reproduce this error, however I did not get the result that you explained above. Could you give me more details about how to reproduce this bug?
Based on the following dependencies: next 14.1.0 react 18.2.0 nextui-org/react 2.2.9
When using <Input> component and hitting Shift button on keyboard it occurs.
@Berdugo1994 Thank you for the reply. I created my NextJS project for this, however, I could not see the same error. Could you please send me a simple sandbox or provide the reproducing code?