Disable placeholder in select box

[MAILPOET-2652]
This commit is contained in:
Pavel Dohnal
2020-01-22 13:43:26 +01:00
committed by Jack Kitterhing
parent a37d8888d9
commit 0932f7c985

View File

@@ -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>
))