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
You'll see that the code above doesn't work because:
What is expected?
Sometimes, I want to change the label style or do special treatment of label text. I need the options[label] in the slot.
What is actually happening?
label slot not work if options[label] !== undefined
I think this component shouldn't mix slot and options attribute.If the user uses a slot, you should let him use anything, including the label.
This is my pr:
The text was updated successfully, but these errors were encountered:
Version
3.2.20
Environment
navigator.platform: Win10; navigator.appName: 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.57; vue: 3.2.0
Reproduction link
Steps to reproduce
You'll see that the code above doesn't work because:
What is expected?
Sometimes, I want to change the label style or do special treatment of label text. I need the options[label] in the slot.
What is actually happening?
label slot not work if options[label] !== undefined
I think this component shouldn't mix slot and options attribute.If the user uses a slot, you should let him use anything, including the label.
This is my pr:
The text was updated successfully, but these errors were encountered: