<${props.Select}
className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )}
classNamePrefix="mf_select"
name="mf-select"
placeholder="${ parent.decodeEntities(`Services`) } "
isSearchable=${false}
options=${[{"label":"Rescue Tratement","value":"value-1","isDisabled":false},{"label":"Scalp Massage","value":"value-2","isDisabled":false},{"label":"Pranama Stone","value":"value-3","isDisabled":false},{"label":"Natural Mask","value":"Input Value","isDisabled":false},{"label":"Body Scrub","value":"Input Value","isDisabled":false}]}
value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"Rescue Tratement","mf_input_option_value":"value-1","_id":"0f9251f","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"Scalp Massage","mf_input_option_value":"value-2","_id":"3d13f24","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"Pranama Stone","mf_input_option_value":"value-3","_id":"e2fa55a","mf_input_option_status":"","mf_input_option_selected":""},{"_id":"67cde8b","mf_input_option_text":"Natural Mask","mf_input_option_value":"Input Value","mf_input_option_status":"","mf_input_option_selected":""},{"_id":"712db81","mf_input_option_text":"Body Scrub","mf_input_option_value":"Input Value","mf_input_option_status":"","mf_input_option_selected":""}].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``}
/>