disable searching / prevent from displaying keyboard
Is there any way to add option to disable input search for multiselect? Or is there working approach with current options?
would be interested in this , too. A way to set showSearchBox={false}
I passed this prop to <Multiselect /> and
onKeyPressFn={(e) => e.preventDefault()}
this className to inputField
cursor: "pointer",
caretColor: "transparent"
@pablowbk @piotrrussw
Not helped to me, on mobile for some reason it still appears:
<Multiselect id="test222"
onKeyPressFn={(e: any) => e.preventDefault()}
displayValue={props.displayValue ?? "key"}
hideSelectedList={props.hideSelectedList ?? false}
onRemove={props.onRemove ?? function noRefCheck() {}}
onSearch={props.onSearch ?? function noRefCheck() {}}
avoidHighlightFirstOption={props.avoidHighlightFirstOption ?? true}
placeholder={props.placeholder}
onSelect={props.onSelect ?? function noRefCheck() {}}
options={props.options}
selectedValues={props.selectedValues}
showCheckbox
showArrow
customArrow={
<img
src="/assets/img/icon/arrow-down.svg"
alt="Select values from dropdown menu"
/>
}
/>
Seems like onKeyPress is a bug on mobile chrome, can you try onKeyUp or any other similar func for mobile? @alexeysilyuk https://stackoverflow.com/questions/22473950/keypress-event-not-firing-in-android-mobile