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 (
|
return (
|
||||||
<select className="mailpoet_select" id={clientId} value={defaultValue} readOnly>
|
<select className="mailpoet_select" id={clientId} value={defaultValue} readOnly>
|
||||||
{
|
{
|
||||||
options.map((option) => (
|
options.map((option, index) => (
|
||||||
<option key={option.label} value={option.label}>
|
<option key={option.label} value={option.label} disabled={index === 0}>
|
||||||
{option.label}
|
{option.label}
|
||||||
</option>
|
</option>
|
||||||
))
|
))
|
||||||
|
Reference in New Issue
Block a user