AlaskaAirlines / auro-input

Custom HTML element for inputting string data in forms
https://auro.alaskaair.com/components/auro/input
Apache License 2.0
2 stars 4 forks source link

Incorrect cursor placement when editing date #331

Open jordanjones243 opened 2 months ago

jordanjones243 commented 2 months ago

Please verify the version of auro-input you have installed

3.1.1

Please describe the bug

  1. Go to auro-input on the doc site and scroll to "date input"
  2. Type in "01/03/2022"
  3. Click after the 3 and hit backspace. The cursor jumps to right after the second /.
  4. Enter 3 again.
  5. Notice error - Date is now 01/02/3022

Reproducing the error on the docsite

This issue is reproducible on the Auro docsite

Expected behavior

Used should be able to delete and enter in numbers with the cursor staying in the same place and the format of the date to be correct.

What browsers are you seeing the problem on?

Chrome

Patrick-Daly-AA commented 2 months ago

root cause is likely coming from Cleave JS