EQWorks / lumen-labs

React library of basic components based on Tailwind CSS
https://eqworks.github.io/lumen-labs
5 stars 2 forks source link

TextField - fixes for unexpected behaviours #102

Closed geoerika closed 2 years ago

geoerika commented 2 years ago

Problems:

  1. The styling stays on focus after selecting a value and clicking elsewhere on the page
  2. Adding a suffix renders the TextField unusable for numeric values:

https://user-images.githubusercontent.com/41120953/153695430-d13a7e8e-6579-4d7b-aa3d-2c1de7640f73.mov

  1. After entering a value in the TextField, if we press Enter, the whole page crashes:

https://user-images.githubusercontent.com/41120953/153651358-c3463544-bc03-4b5f-b978-504601a65085.mov