Closed HeyWrecker closed 2 years ago
As an update, I worked around this issue by updating my data array of objects to also include selected
and disabled` properties and then ran these after the initialization:
jQuery(currentRef).multiselect('dataprovider', props.optionData);
jQuery(currentRef).multiselect('updateButtonText');
Hello,
I am mounting
bootstrap-multiselect
(v. 1.1.1
) in a React hook component and using the following function to initialize it in theuseEffect
hook:By and large, this appears to work. The plug-in is mounting, rendering, populating with data, and all of the event handlers are called when the options are selected and/or deselected.
The only issue that I appear to be running into is that the
onSelectAll
event handler is not responding thejQuery(currentRef).multiselect('selectAll', false);
.I'm not certain where to go from here. Any advice would be incredibly helpful. Thanks!
Rick