<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['booking_doctor'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="booking_doctor" placeholder="${ parent.decodeEntities(`Select`) } " isSearchable=${false} options=${[{"label":"Please select clinic to visit","value":"","isDisabled":true},{"label":"Chandigarh","value":"Chandigarh","isDisabled":false},{"label":"Zirakpur","value":"Zirakpur","isDisabled":false}]} value=${parent.getValue("booking_doctor") ? [{"label":"Please select clinic to visit","value":"","isDisabled":true},{"label":"Chandigarh","value":"Chandigarh","isDisabled":false},{"label":"Zirakpur","value":"Zirakpur","isDisabled":false}].filter(item => item.value === parent.getValue("booking_doctor"))[0] : []} onChange=${(e)=> parent.handleSelect(e, "booking_doctor")} ref=${() => { register({ name: "booking_doctor" }, parent.activateValidation({"message":"Something went wrong.","minLength":1,"maxLength":"","type":"none","required":true})); if ( parent.getValue("booking_doctor") === '' && false ) { parent.setValue( 'booking_doctor', '', true ); parent.handleChange({ target: { name: 'booking_doctor', value: '' } }); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="booking_doctor" as=${html``} />