Disable placeholder in select box
[MAILPOET-2652]
This commit is contained in:
committed by
Jack Kitterhing
parent
a37d8888d9
commit
0932f7c985
@@ -92,8 +92,8 @@ const CustomSelectEdit = ({ attributes, setAttributes, clientId }) => {
|
||||
return (
|
||||
<select className="mailpoet_select" id={clientId} value={defaultValue} readOnly>
|
||||
{
|
||||
options.map((option) => (
|
||||
<option key={option.label} value={option.label}>
|
||||
options.map((option, index) => (
|
||||
<option key={option.label} value={option.label} disabled={index === 0}>
|
||||
{option.label}
|
||||
</option>
|
||||
))
|
||||
|
Reference in New Issue
Block a user