You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have also tried the following different ways of updating the value. filterSelect.value = 'test'; filterSelect.instance().value = 'test'; filterSelect.simulate('change');
The text was updated successfully, but these errors were encountered:
I'm trying to update the value of a Select2 component, then trigger the onChange to get my test as close to how a real user would.
Component
Test
Value is never updated, onChange is never called. This is how React + Enzyme say to fire the change event for a
select
element but it isn't working.I have also tried the following different ways of updating the value.
filterSelect.value = 'test';
filterSelect.instance().value = 'test';
filterSelect.simulate('change');
The text was updated successfully, but these errors were encountered: