polymer icon indicating copy to clipboard operation
polymer copied to clipboard

paper dialog demo

Open elodiebq opened this issue 11 years ago • 8 comments

https://www.polymer-project.org/components/paper-dialog/demo.html when click "Colors", it doesn't work, when click "Size & Position", it will show colors and size&position effects.

elodiebq avatar Feb 24 '15 21:02 elodiebq

wfm with chrome Version 41.0.2272.63 beta (64-bit)....any browser detail?

davidmaxwaterman avatar Feb 24 '15 21:02 davidmaxwaterman

version: 40.0.2214.115 (64-bit)

2015-02-24 16:53 GMT-05:00 Max Waterman [email protected]:

wfm with chrome Version 41.0.2272.63 beta (64-bit)....any browser detail?

— Reply to this email directly or view it on GitHub https://github.com/Polymer/polymer/issues/1218#issuecomment-75854572.

李碧萩 Rachel Li

北京外国语大学 计算机系 Department of Computer Science , Beijing Foreign Studies University

Mobile:15201314701

elodiebq avatar Feb 25 '15 02:02 elodiebq

~~Works for me too~~ on Chrome version: 40.0.2214.115 (64-bit) and FF 36

EDIT: Using steps below this breaks for me

winhowes avatar Feb 25 '15 03:02 winhowes

I see the same issue

  • click colors then click away
  • click size&position then click away
  • click size&position and the colors is shown instead

chrome Version 40.0.2214.115 m

pflannery avatar Feb 25 '15 04:02 pflannery

The issue is that the <paper-dialogue> element is removed from it's parent and inserted in the <overlay-host>'s shadow DOM. When the dialogue/overlay is closed the <paper-dialogue> is appended into its original parent. The button when clicked, looks for the next element and calls toggle() on it. Because the <paper-dialogue> is appended into it's original parent and not inserted after the button (where it originally was), clicking the button fails/causes unexpected behavior. This happens in more than just the color/size&position case

winhowes avatar Feb 25 '15 04:02 winhowes

@winhowes or @davidmaxwaterman are you working on a PR for this?

Nevraeka avatar Feb 27 '15 11:02 Nevraeka

Yeah, I am

winhowes avatar Feb 28 '15 00:02 winhowes

Closing this issue due to age and the release of version 1 of Polymer - please feel free to re-open if this is incorrect.

tjsavage avatar Oct 23 '15 23:10 tjsavage