Closed mtycholaz closed 9 years ago
The AppBar
needs to be a direct child of the body
to avoid this kind of problem. The same applies to other overlay controls such as Flyout
, SettingsFlyout
, Menu
, and ContentDialog
.
The reason is that these controls need to be in the body
's stacking context otherwise you'll run into problems like this where we can't put the AppBar
above our click eating element. See this comment for more details.
Hey thanks for your help. Knowing this now allows me to move forward. Nothing but developer ignorance to blame here.
Where are you hooking up your ng-click on your app bar commands? Can't get this to work...
Here's my setup
and inside of MessageList.html
The app bar will render, and buttons that show on the bar (section='primary') register click events. However, when you click the expand button and try to click on items within the secondary area, the click event is eaten by the element, and it never goes through to the button (no button css active/click highlights or anything). However if you pull the win-app-bar out of the template (MessageList.html in my case) and put it beside the win-pivot, then it works fine.
So to recap, putting a win-app-bar inside a win-pivot-item doesn't work :(