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
Update the default element type of FieldLabel to div instead of label to prevent unexpected behaviour.
Example: When using an AutoField component as a child of FieldLabel, clicking the item within an array item triggers a remove action for the array item. This is because the element is a label by default.
The text was updated successfully, but these errors were encountered:
Hi @IMythx. I don't think this is a bug, as it's HTML functionality, but I think we should consider setting the default for FieldLabel to div to prevent this kind of behaviour.
I'll update the title and mark as a feature.
chrisvxd
changed the title
FieldLabel bugged
Update default type of FieldLabel to div instead of labelJul 11, 2024
Hi @IMythx. I don't think this is a bug, as it's HTML functionality, but I think we should consider setting the default for FieldLabel to div to prevent this kind of behaviour.
I'll update the title and mark as a feature.
ok but still why focusing on the array item (via clicking on the label) would trigger a remove action t o one of the array items(usually the first one)
Update the default element type of FieldLabel to
div
instead oflabel
to prevent unexpected behaviour.Example: When using an AutoField component as a child of FieldLabel, clicking the item within an array item triggers a remove action for the array item. This is because the element is a
label
by default.The text was updated successfully, but these errors were encountered: