<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-select"
placeholder="${ parent.decodeEntities(`Choose Trek`) } "
isSearchable=${false}
options=${[{"label":"Mount Agung","value":"value-1","isDisabled":false},{"label":"Mount Rinjani","value":"value-2","isDisabled":false},{"label":"Mount Jayawijaya","value":"value-3","isDisabled":false},{"label":"Mount Everest","value":"value-4","isDisabled":false},{"label":"Mount Fuji","value":"value-5","isDisabled":false},{"label":"Mount Bromo","value":"value-6","isDisabled":false}]}
value=${parent.getValue("mf-select") ? [{"label":"Mount Agung","value":"value-1","isDisabled":false},{"label":"Mount Rinjani","value":"value-2","isDisabled":false},{"label":"Mount Jayawijaya","value":"value-3","isDisabled":false},{"label":"Mount Everest","value":"value-4","isDisabled":false},{"label":"Mount Fuji","value":"value-5","isDisabled":false},{"label":"Mount Bromo","value":"value-6","isDisabled":false}].filter(item => item.value === parent.getValue("mf-select"))[0] : []}
onChange=${(e)=> parent.handleSelect(e, "mf-select")}
ref=${() => {
register({ name: "mf-select" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":false}));
if ( parent.getValue("mf-select") === '' && false ) {
parent.setValue( 'mf-select', '', true );
parent.handleChange({
target: {
name: 'mf-select',
value: ''
}
});
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-select"
as=${html``}
/>