(Anyone who’s facing this, checkout the issue at github)
- Framework7 version: 4.4.10
- Platform and Target: Cordova App - Tested on Android 9 and Browser
- https://jsfiddle.net/isaacbatst/xr1gdojp/32/ (Thanks for the template)
Describe the bug
Using smartselect.close() method on opened handler crashes closeByBackdropClick feature.
Using smartselect.close() method on open handler makes the open event doesn’t trigger anymore.
To Reproduce
Steps to reproduce the behavior:
- Go to https://jsfiddle.net/isaacbatst/xr1gdojp/32/
- Click on the button to init the smartselects
- Open the first smartselect three times to see the error 1.
- Open the second smartselect three times to see the error 2.
Expected behavior
Expected the smartselect to open when the counter equals 0 and to do not open when the counter equals 1.
Actual Behavior
Using smartselect.close() method on opened handler does my logic to open the smart select only when the counter equals 0, but it crashes closeByBackdropClick feature.
Using smartselect.close() method on open handler stops triggering the open event.
Additional context
The counter starts at 0 and it’s toggled each time you open the smartselect.
Each smart select has its own counter.