mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Fixed #4822 - Calendar responsiveness updates
This commit is contained in:
parent
af504277ba
commit
9bef643b0d
60 changed files with 185 additions and 286 deletions
|
@ -538,7 +538,8 @@ export default {
|
|||
pm: null,
|
||||
focused: false,
|
||||
overlayVisible: false,
|
||||
currentView: this.view
|
||||
currentView: this.view,
|
||||
queryMatches: false
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
|
@ -588,6 +589,13 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.createResponsiveStyle();
|
||||
const query = matchMedia(`(max-width: ${this.breakpoint})`);
|
||||
|
||||
this.queryMatches = query.matches;
|
||||
|
||||
query.addEventListener('change', () => {
|
||||
this.queryMatches = query.matches;
|
||||
});
|
||||
|
||||
if (this.inline) {
|
||||
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue