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
Using a Dropdown with unstyled mode shows a 'empty' label when no option is selected. Prop 'emptyMessage' to customize that message doesn't work.
<Dropdownid="gender"name="gender"value={gender}onChange={e=>setGender(e.target.value)}options={genders}emptyMessage="Selecciona una opción"unstyled/>
Also, as I'm using the dropdown with a float label, both 'empty' label and my defined float label they overlap each other.
<spanclassName="p-float-label"><Dropdownid="gender"name="gender"value={gender}onChange={e=>setGender(e.target.value)}options={genders}emptyMessage="Selecciona una opción"unstyled/><labelhtmlFor="gender">Género *</label></span>
Reproducer
No response
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
If I don't use emptyMessage prop it shouldn't show any label.
And if I define emptyMessage prop it should show that label.
The text was updated successfully, but these errors were encountered:
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
May 26, 2024
Describe the bug
Using a Dropdown with unstyled mode shows a 'empty' label when no option is selected. Prop 'emptyMessage' to customize that message doesn't work.
Also, as I'm using the dropdown with a float label, both 'empty' label and my defined float label they overlap each other.
Reproducer
No response
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
If I don't use emptyMessage prop it shouldn't show any label.
And if I define emptyMessage prop it should show that label.
The text was updated successfully, but these errors were encountered: