You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When submitting a form, either a readonly or disabled attribute are added to controls (depending upon the control type).
This stops the user from being able to edit the form during submit and allows us to style the controls for visual feedback.
A flux:select variant="listbox" doesn't seem to receive any such attribute upon submit - which means I can't style it, and also it is still active/editable during submit.
If you use the code below and inspect the different controls in the browser's devtools, you'll see the attributes being added (or not, in the case of the listbox) during the sleep(3) I added to the save() method.
When submitting a form, either a
readonly
ordisabled
attribute are added to controls (depending upon the control type).This stops the user from being able to edit the form during submit and allows us to style the controls for visual feedback.
A
flux:select variant="listbox"
doesn't seem to receive any such attribute upon submit - which means I can't style it, and also it is still active/editable during submit.If you use the code below and inspect the different controls in the browser's devtools, you'll see the attributes being added (or not, in the case of the
listbox
) during thesleep(3)
I added to thesave()
method.To reproduce, add the following to your
app.css
:Then, this Volt component shows a
listbox
next to a few other controls:The text was updated successfully, but these errors were encountered: