iron-ajax icon indicating copy to clipboard operation
iron-ajax copied to clipboard

response event bubbles when it should not

Open maximermilov opened this issue 7 years ago • 1 comments

Description

In following hierarchy: CustomComponent1 |CustomComponent2 ||iron-ajax

iron-ajax emits response event on parent component(CustomComponent2) with bubbles set to false.

Expected outcome

not bubble event.

Actual outcome

unexpected event on parent component CustomComponent2

Live Demo

http://plnkr.co/edit/CENiTbbksBJkqpAfnlhL

Steps to reproduce

Open developer console, Live Demo outputs "BUG" if event bubbles.

Browsers Affected

  • [x] Chrome
  • [-] Firefox

maximermilov avatar Nov 22 '17 00:11 maximermilov

I don't believe this is a bug with iron-ajax. When composed is false it doesn't hit the "BUG" log statement. However, it may be a bug with Chrome handling bubbles: false with composed: true? You can check the composedPath to see where the event is hitting.

stramel avatar Jan 24 '18 21:01 stramel