From a1f9e79fc1354b3efe90d811e0b0a7ce31ed0e10 Mon Sep 17 00:00:00 2001 From: Leslie Date: Thu, 26 Jan 2017 15:07:04 -0800 Subject: [PATCH] Allow restoreFocusOnClose to be set on paper-dropdown-menu Paper-dropdown-menu creates a child paper-menu-button. Paper-menu-button has a restore-focus-on-close property, but there is currently no way for components with a paper-dropdown-menu to set this property. This will allow components with a paper-dropdown-menu to choose not to have focus set on the menu when the menu closes. --- paper-dropdown-menu.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/paper-dropdown-menu.html b/paper-dropdown-menu.html index 06f4ab8..98ebecc 100644 --- a/paper-dropdown-menu.html +++ b/paper-dropdown-menu.html @@ -98,7 +98,8 @@ on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate - allow-outside-scroll="[[allowOutsideScroll]]"> + allow-outside-scroll="[[allowOutsideScroll]]" + restore-focus-on-close="[[restoreFocusOnClose]]">