After some research, I found the problem on the Github polymer, and there is a way to crack it so that it works:
_finishRenderOpened: function() { // focus the child node with [autofocus] if (!this.noAutoFocus) { this._focusNode.focus(); } if(this.withBackdrop) { this.parentNode.insertBefore(this._backdrop, this); } this.fire('iron-overlay-opened'); this._squelchNextResize = true; this.async(this.notifyResize); },
(code https://github.com/dhpollack )
"To implement dhpollack hack beautifully, add this function to your custom element:
patchOverlay: function (e) { if (e.target.withBackdrop) { e.target.parentNode.insertBefore(e.target._backdrop, e.target); } },
And add on-iron-overlay-opened="patchOverlay" to all your <paper-dialog> '
(implementation https://github.com/rubenstolk )
Github issue: https://github.com/PolymerElements/paper-dialog/issues/7
Hope this works for you :)
Kayofeld
source share