Questions tagged [stoppropagation]

stopPropagation is a method of the event object that prevents further propagation of the current event.

stopPropagation is a method of the event object that prevents further propagation of the current event. This prevents ancestors of the current node from receiving the event.

392 questions
0
votes
2 answers

stopPropagation without preventing default

Is it possible to stop event propagation without preventing the default event behaviour? This should let the input increment/decrement when scrolled but stop it from bubbling to any other elements and scrolling the outer div. (The following is…
DanielST
  • 13,783
  • 7
  • 42
  • 65
0
votes
0 answers

event stopPropagation issue

Fixed - I had to add a z-index to the form. When I click on the user-mobile-search it shouldn't close as I have added e.stopPropagation, however it continues to close it. I don't understand why. html:
0
votes
1 answer

Drag behavior for nested g elements

This question is closely related to the following question: d3 click and drag event nesting In that question, there was a single g element with a bunch of svg elements in the group. The solution was to use d3.event.sourceEvent.stopPropagation on…
Eric
  • 31
  • 7
0
votes
1 answer

jQuery: Element with stopPropagation Going to Its Link

I'm using stopPropagation to make a parent menu item that links to /# to show a dropdown child menu when clicked. It does show the child menu when clicked, but it first goes to url/# before showing the child menu. I'd like it to ignore its link and…
JJ L
  • 11
  • 4
0
votes
3 answers

Jquery - Want to prevent invoking popup window which is already defined

I am invoking one popup window on clicking of table row. So my code is like this... $('.assignPanel tbody tr').on('click', function() { // code for invoking the popup window }); The problem is here. I dont want to invoke the same popup window…
Vasethvan
  • 391
  • 1
  • 4
  • 12
0
votes
2 answers
0
votes
1 answer

jQuery and event bubbling: stop unwanted events

I am trying to enhance a HTML textarea with some BB-Code controls that should only be available when the textarea has focus. The desired behaviour looks like this: Picture 1 - before focus event: (source: gaedekenet.de) Picture 2 - after focus…
Eddie
  • 109
  • 1
  • 11
0
votes
2 answers

preventDefault, make changes and continue routine

I have a small site with a script that runs a query with mysql and returns me some data, including domains. These domains are generated html links and I want to change in javascript, since I can not access the part of php, but yes to the javascript…
0
votes
1 answer

IE/Firefox bubble event

Most likely this question has been asked many times before, but as far as I could see, the same responses are given and they do not work for me. The problem is the following: I have a button control that is rendered as a table and inside this table…
marius
  • 25
  • 4
0
votes
2 answers

How to get the names of functions from event for stopPropagation

I'm trying to figure out if there is a way to get all of the functions called from an onclick event. The scenario is something like this: HTML:
CJT3
  • 2,788
  • 7
  • 30
  • 45
0
votes
1 answer

Jquery code prevents my hyperlinks to work

I have a jquery problem. After I have written a code which can be seen below. My hyperlinks do not work somehow. The same links which are situated on the footer work perfectly. Most probably I am doing something wrong in query. Could you help me to…
allence
  • 569
  • 1
  • 5
  • 12
0
votes
2 answers

.stopPropagation() and bubbling - can someone explain it to me?

I have a stupid question. Can somebody explain me, why event still starts on .outer? Even when I have set .stopPropagation(). I suppose, I don't understand the issue correctly. When I click on .inner, event should not bubble up to .outer HTML:
exoslav
  • 2,094
  • 3
  • 21
  • 26
0
votes
1 answer

Nested Lists, jquery, and stopPropagation

I'm running into an issue with nested menus not acting the way I'm anticipating. I've looked through a bunch of stuff on StackOverflow regarding stopPropagation(), but it just doesn't seem to be working. The site is wordpress based, unfortunately,…
Lisa
  • 2,102
  • 7
  • 26
  • 44
0
votes
1 answer

setAttribute use for Javascript functions

I have 3 nested divs..
1
2
3
To stop event-bubbling, I want add a syntax to the divs - stopPropagation(). I've…
Bhavuk Mathur
  • 1,048
  • 1
  • 12
  • 22
0
votes
1 answer

2 jQuery scripts conflicting

I've got a button linking to fancybox and another that toggles a hidden contact form. They both work alone but I can't get the fancybox to work when they're together. I think it might have something to to do with the stopPropagation in my script?…
rizzledon
  • 145
  • 1
  • 2
  • 11