diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index dfd54e2b5f..303b85dd55 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -79,7 +79,7 @@ export default { this.d_activeIndex = newValue; } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); }, methods: { diff --git a/components/lib/autocomplete/AutoComplete.vue b/components/lib/autocomplete/AutoComplete.vue index 374a111f0d..e2e9eceff7 100755 --- a/components/lib/autocomplete/AutoComplete.vue +++ b/components/lib/autocomplete/AutoComplete.vue @@ -223,9 +223,10 @@ export default { this.autoUpdateModel(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.autoUpdateModel(); }, updated() { diff --git a/components/lib/cascadeselect/CascadeSelect.vue b/components/lib/cascadeselect/CascadeSelect.vue index dd279da9a3..b6e67ee354 100644 --- a/components/lib/cascadeselect/CascadeSelect.vue +++ b/components/lib/cascadeselect/CascadeSelect.vue @@ -114,9 +114,10 @@ export default { this.autoUpdateModel(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.autoUpdateModel(); }, beforeUnmount() { diff --git a/components/lib/contextmenu/ContextMenu.vue b/components/lib/contextmenu/ContextMenu.vue index 7ed03f0a30..ac548b63d7 100755 --- a/components/lib/contextmenu/ContextMenu.vue +++ b/components/lib/contextmenu/ContextMenu.vue @@ -76,9 +76,10 @@ export default { } } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { if (this.global) { this.bindDocumentContextMenuListener(); } diff --git a/components/lib/dock/DockSub.vue b/components/lib/dock/DockSub.vue index ad1732f392..e57bb9579f 100644 --- a/components/lib/dock/DockSub.vue +++ b/components/lib/dock/DockSub.vue @@ -110,7 +110,7 @@ export default { this.id = newValue || UniqueComponentId(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); }, methods: { diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index ec072002cd..451c2884f4 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -215,9 +215,10 @@ export default { this.autoUpdateModel(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.autoUpdateModel(); this.bindLabelClickListener(); }, diff --git a/components/lib/listbox/Listbox.vue b/components/lib/listbox/Listbox.vue index 50191482f2..cc7b040a88 100755 --- a/components/lib/listbox/Listbox.vue +++ b/components/lib/listbox/Listbox.vue @@ -156,9 +156,10 @@ export default { this.autoUpdateModel(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.autoUpdateModel(); }, methods: { diff --git a/components/lib/megamenu/MegaMenu.vue b/components/lib/megamenu/MegaMenu.vue index ce3c8f31bc..d459c2a7e6 100755 --- a/components/lib/megamenu/MegaMenu.vue +++ b/components/lib/megamenu/MegaMenu.vue @@ -98,8 +98,10 @@ export default { } } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); + }, + mounted() { this.bindMatchMediaListener(); }, beforeUnmount() { diff --git a/components/lib/menu/Menu.vue b/components/lib/menu/Menu.vue index 4bb75c1c89..b80828e542 100644 --- a/components/lib/menu/Menu.vue +++ b/components/lib/menu/Menu.vue @@ -73,9 +73,10 @@ export default { resizeListener: null, container: null, list: null, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { if (!this.popup) { this.bindResizeListener(); this.bindOutsideClickListener(); diff --git a/components/lib/menubar/Menubar.vue b/components/lib/menubar/Menubar.vue index e397c176f0..8729ca411a 100755 --- a/components/lib/menubar/Menubar.vue +++ b/components/lib/menubar/Menubar.vue @@ -93,8 +93,10 @@ export default { outsideClickListener: null, container: null, menubar: null, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); + }, + mounted() { this.bindMatchMediaListener(); }, beforeUnmount() { diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 6e770c085f..ca38fd53a4 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -241,9 +241,10 @@ export default { this.autoUpdateModel(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.autoUpdateModel(); }, beforeUnmount() { diff --git a/components/lib/orderlist/OrderList.vue b/components/lib/orderlist/OrderList.vue index 863f394ece..345c3e8252 100755 --- a/components/lib/orderlist/OrderList.vue +++ b/components/lib/orderlist/OrderList.vue @@ -116,9 +116,10 @@ export default { this.reorderDirection = null; } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { if (this.responsive) { this.createStyle(); } diff --git a/components/lib/panelmenu/PanelMenu.vue b/components/lib/panelmenu/PanelMenu.vue index 8abec3f03a..0a7aaa72fb 100644 --- a/components/lib/panelmenu/PanelMenu.vue +++ b/components/lib/panelmenu/PanelMenu.vue @@ -76,7 +76,7 @@ export default { this.id = newValue || UniqueComponentId(); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); }, methods: { diff --git a/components/lib/picklist/PickList.vue b/components/lib/picklist/PickList.vue index 92dde3d4d1..c641693e22 100755 --- a/components/lib/picklist/PickList.vue +++ b/components/lib/picklist/PickList.vue @@ -276,9 +276,10 @@ export default { this.destroyStyle(); this.destroyMedia(); }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { if (this.responsive) { this.createStyle(); this.initMedia(); diff --git a/components/lib/speeddial/SpeedDial.vue b/components/lib/speeddial/SpeedDial.vue index ec8bde79fe..23d278cbbb 100644 --- a/components/lib/speeddial/SpeedDial.vue +++ b/components/lib/speeddial/SpeedDial.vue @@ -84,9 +84,10 @@ export default { this.d_visible = newValue; } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { if (this.type !== 'linear') { const button = DomHandler.findSingle(this.container, '[data-pc-name="button"]'); const firstItem = DomHandler.findSingle(this.list, '[data-pc-section="menuitem"]'); diff --git a/components/lib/tabview/TabView.vue b/components/lib/tabview/TabView.vue index 2ca55c97aa..e5ce2b3b0a 100755 --- a/components/lib/tabview/TabView.vue +++ b/components/lib/tabview/TabView.vue @@ -121,9 +121,10 @@ export default { this.scrollInView({ index: newValue }); } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); - + }, + mounted() { this.updateInkBar(); this.scrollable && this.updateButtonState(); }, diff --git a/components/lib/tieredmenu/TieredMenu.vue b/components/lib/tieredmenu/TieredMenu.vue index 78b9660f02..9064b38ec2 100755 --- a/components/lib/tieredmenu/TieredMenu.vue +++ b/components/lib/tieredmenu/TieredMenu.vue @@ -85,7 +85,7 @@ export default { } } }, - mounted() { + beforeMount() { this.id = this.id || UniqueComponentId(); }, beforeUnmount() {