mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Fixed #4820 - Menubar responsiveness updates
This commit is contained in:
parent
a073a6690a
commit
e417c5b6c2
60 changed files with 3354 additions and 5017 deletions
|
@ -68,7 +68,8 @@ export default {
|
|||
focused: false,
|
||||
focusedItemInfo: { index: -1, level: 0, parentKey: '' },
|
||||
activeItemPath: [],
|
||||
dirty: false
|
||||
dirty: false,
|
||||
queryMatches: false
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
@ -90,6 +91,13 @@ export default {
|
|||
menubar: null,
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
const query = matchMedia(`(max-width: ${this.breakpoint})`);
|
||||
|
||||
this.queryMatches = query.matches;
|
||||
|
||||
query.addEventListener('change', () => {
|
||||
this.queryMatches = query.matches;
|
||||
});
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.mobileActive = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue