stoppropagation Questions

10

Solved

They seem to be doing the same thing... Is one modern and one old? Or are they supported by different browsers? When I handle events myself (without framework) I just always check for both and exe...
Blanding asked 11/5, 2011 at 11:45

5

Solved

I have a vertically-scrolling div within a page that also scrolls vertically. When the child div is scrolled with the mouse wheel and reaches the top or bottom of the scroll bar, the page (body) b...
Alyworth asked 13/2, 2012 at 5:59

3

Solved

thanks for reading... I'll get right into the issue. I have an onclick function attached to an image. <div id="mercury" onclick="displayCreations()"> Javascript function: function displa...
Holladay asked 18/1, 2018 at 19:33

2

Solved

For example we have a page with a link that has onclick event listener on it. But handler makes stopPropagation. How I can handle that click event was made, if it's not bubble to root anymore? e.g...
Agrimony asked 11/2, 2015 at 12:11

2

Solved

I have a inner dev with a fixed height and overflow-y: scroll; where the contents can be scrolled in y direction. When the scrolling hits the top or the bottom the outer div is scrolled. I want to ...
Bauble asked 11/11, 2016 at 9:0

4

Solved

I wrote a script that should stop execution if the supplied data is incorrect. However, although stop produces an error message, the script just continues. A minimal example: if (TRUE) {stop("End ...
Imperium asked 14/1, 2016 at 10:19

1

With Javascript it is possible to stop propagation with code? E.g. function func1(event) { alert("DIV 1"); if (document.getElementById("check").checked) { event.stopPropagation(); } } Is i...
Negativism asked 19/2, 2019 at 10:41

4

Solved

When I click on my a-tag, I do not want the parent's event to trigger. If the child had a normal event listener, it could be prevented by event.stopPropagation(), but how do I do it when there is n...
Hangover asked 10/8, 2018 at 14:35

0

Using current versions of react-dom and @material-ui, I need to stopPropagation and/or preventDefault in quite a few places. I've never ran into a problem like in this article and I guess, it can't...

1

Solved

There have been some attempts to answer this question: here, here and here. However none of the answers are giving a solid response. I'm not referring to the event phases capture, bubble and target...

4

Solved

I can't seem to get this to stop propagating.. $(document).ready(function(){ $("body").on("click","img.theater",function(event){ event.stopPropagation(); $('.theater-wrapper').show(); }); ...
Kreg asked 24/1, 2012 at 22:11

2

We can use event.stopPropagation() for stopping event bubbling. Can we use same method for stopping event capturing also? If no how can we achieve it?
Acoustician asked 4/9, 2018 at 9:54

2

Solved

I have an issue on my site, the select picker works fine a lot of time, but without making any changes on the code, the select-picker stopped working. The error is: bootstrap-select.min.js:7 Un...

3

Solved

Many people have explained that e.stopPropagation() prevents event bubbling. However, I'm having a hard time finding why one would want or want to prevent event bubbling in the first place. On my...

7

I have a parent and child div. Panning/dragging on the child should not affect the parent. This is a similar question but was asked a year ago, and I'm using a newer version of Hammer.js w/ the jQu...
Jackjackadandy asked 24/9, 2014 at 22:8

3

Solved

I have a re sizable div. While trying to resize it the whole page is getting selected with blue color even though I didn't intend to in iE and Edge. I have tried many solutions shown on web but not...

2

Solved

I have the following Hot Observable: hotObservable = Observable.interval(0L, 1L, TimeUnit.SECONDS) .map((t) -> getCurrentTimeInMillis())) However, I can't find a good way to stop it. I was a...
Undercoating asked 9/12, 2016 at 23:29

0

There are ways of registering Events to objects in an HTML file. So this way an object is set to detect events. In case we think 2 div elements one inside other; If i attach an onClick event to...
Fractionize asked 13/5, 2017 at 12:35

2

Solved

As a code is better than 1000 words, I've created a plunker in order to show my problem: http://bit.ly/1uiR2wy Given the specific DOM element, thing is that I have an input checkbox with an ng-cha...
Durra asked 16/11, 2014 at 22:9

2

Solved

This is my html chunk <tr> <td class="c_menu" id="bat_light"> <a href="someLink/file.html#" onclick="OpenItem('light');return false;">sometitle</a> </td> <td c...
Nannie asked 6/8, 2014 at 15:13

2

Solved

I'm trying to use stopPropagation method. I use d3.js with d3.d.ts (downloaded via typings). Is it possible to call stopPropagation somehow? I used event.stopPropagation() until I've run my applica...
Rumery asked 19/6, 2016 at 20:40

1

I have a few e.stopPropagation() events going on to prevent clicks from bubbling up for certain elements. But now it seems that everytime I click on anything, besides those elements, on these pages...
Erbil asked 26/2, 2016 at 20:31

4

Solved

I am trying to "stopPropagation" to prevent a Twitter Bootstrap navbar dropdown from closing when an element (link) inside an li is clicked. Using this method seems to be the common solution. In A...
Mil asked 27/1, 2013 at 5:34

5

Solved

Never come across this before can anyone give me any pointers? I'm creating a web app for making notes like post it notes onto a whiteboard. At the moment the spawn button will spawn notes but I w...
Internuncial asked 23/3, 2012 at 22:14

5

Solved

I'm using hammer.js and it appears that I event.stopPropagation() doesn't work with tap event. If I click on the child, the associated event is triggered but parent's event is also triggered and I...
Use asked 13/6, 2012 at 17:7

© 2022 - 2024 — McMap. All rights reserved.