NPM dist `bootstrap-vue\es\components\modal\modal.js` stops propagation of events
See original GitHub issueHi,
There is strange code in bootstrap-vue\es\components\modal\modal.js:120
.
on: {
focusout: this.onFocusout,
click: function click(evt) {
evt.stopPropagation();
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1528
_this.$root.$emit('bv::dropdown::shown');
}
}
Can you provide solution that won’t stop propagation of all events and stops only for bv
events?
It blocks other components, for example https://github.com/stfalcon-studio/stf-vue-select.
Emitting bv::dropdown::shown
is quite confusing too when you don’t have any dropdowns on modal.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
stop-react-event-propagation - npm
This package offers util function to stop immediate and further propagation for React components to keep an event 'private'.
Read more >Event.stopPropagation() - Web APIs | MDN
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
Read more >JavaScript Events: Bubbling, Capturing, and Propagation
You can think of propagation as electricity running through a wire, until it reaches its destination. The event needs to pass through every...
Read more >Stop propagation for all events - Stack Overflow
stopPropagation () method stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed. For ...
Read more >josdejong/propagating-hammerjs: Extend hammer.js ... - GitHub
stopPropagation () to stop propagation to parent elements. Events are extended with a property event.firstTarget containing the element where a gesture started.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This might be addressed in the latest
dev
branch.What about stoping propagation for all events? We use custom dropdown lib and there is problem when we want to hide dropdown clicking outisde.