Skip to content

Checkbox in Menu Item - how to prevent Menu closing #5581

Closed Answered by xxgreg
xxgreg asked this question in Q&A
Discussion options

You must be logged in to vote

Update - success!

Looks like I missed the keepOpen property in the docs oops. 🙈

I'm using lit - so I can set it like this:

      <md-menu-item .keepOpen=${true}>
          <md-checkbox slot="start"></md-checkbox>
          <div slot="headline">Banana</div>
      </md-menu-item>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xxgreg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant