<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-select"
placeholder="${ parent.decodeEntities(`Department`) } "
isSearchable=${false}
options=${[{"label":"Emergency","value":"value-1","isDisabled":false},{"label":"Cardiology","value":"value-2","isDisabled":false},{"label":"Neurology","value":"value-3","isDisabled":false},{"label":"Oncology","value":"value-3","isDisabled":false},{"label":"General surgery","value":"value-3","isDisabled":false},{"label":"Haematology","value":"value-3","isDisabled":false}]}
value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"Emergency","mf_input_option_value":"value-1","mf_input_option_status":"","_id":"e31902e","mf_input_option_selected":""},{"mf_input_option_text":"Cardiology","mf_input_option_value":"value-2","mf_input_option_status":"","_id":"7287975","mf_input_option_selected":""},{"mf_input_option_text":"Neurology","mf_input_option_value":"value-3","mf_input_option_status":"","_id":"2c66f97","mf_input_option_selected":""},{"mf_input_option_text":"Oncology","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"762bb31"},{"mf_input_option_text":"General surgery","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"d4f0b91"},{"mf_input_option_text":"Haematology","mf_input_option_value":"value-3","mf_input_option_status":"","mf_input_option_selected":"","_id":"a4a1840"}].filter(item => item.value === parent.getValue("mf-select"))[0] : []}
onChange=${parent.handleSelect}
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.handleChange({
target: {
name: 'mf-select',
value: ''
}
});
parent.setValue( 'mf-select', '', true );
}
}}
/>
<${validation.ErrorMessage}
errors=${validation.errors}
name="mf-select"
as=${html``}
/>