Please verify the version of auro-input you have installed
2.14.1
Please describe the bug
Create an auro-input component with a specific id and a label text slot. Create a button with a click handler that sets the value of the input to undefined. Type something in the input, then click the button to reset the value. The value is reset correctly, but the label text stays stuck in the "active" position.
Two screenshots: one is of the label text in the initial state, the second is of the label text stuck in the "active" state after the value got set to undefined with the code above.
Reproducing the error on the docsite
This issue cannot be reproduced on the Auro docsite
Expected behavior
When the value of the input is reset to undefined, the label text should reset to its initial position.
Please verify the version of auro-input you have installed
2.14.1
Please describe the bug
Create an
auro-input
component with a specific id and a label text slot. Create a button with a click handler that sets the value of the input toundefined
. Type something in the input, then click the button to reset the value. The value is reset correctly, but the label text stays stuck in the "active" position.Example component code:
Example of resetting the element's value:
Two screenshots: one is of the label text in the initial state, the second is of the label text stuck in the "active" state after the value got set to undefined with the code above.
Reproducing the error on the docsite
This issue cannot be reproduced on the Auro docsite
Expected behavior
When the
value
of the input is reset toundefined
, the label text should reset to its initial position.What browsers are you seeing the problem on?
Chrome
Additional context
NOTE: the docsite for this feature is broken; the example buttons for resetting the input value do not work (on my browser at least). https://auro.alaskaair.com/components/auro/input