This question is pretty old but to answer it, the issue here is with the key and not the label. You must have a unique key but you can have any value for your label.
Best posts made by joeyezekiel
RE: q-tree to set selected value using a "value" property like q-select
QInput autofocus within modals not working
The autofocus property for q-input does not seem to work within modals. For eg, if I have a q-input within a modal, once the modal is shown, the autofocus does not trigger.
I also have another modal within a component which requires the same behavior.
Is there any way I can get it to work?
I tried the hack from another post:
Is there a better way to do this?