PolymerElements / iron-ajax

Easily make ajax requests
https://www.webcomponents.org/element/PolymerElements/iron-ajax
127 stars 113 forks source link

response event bubbles when it should not #303

Open maximermilov opened 6 years ago

maximermilov commented 6 years ago

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

stramel commented 6 years ago

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.