diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index dfd54e2b5..303b85dd5 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 374a111f0..e2e9eceff 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 dd279da9a..b6e67ee35 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 7ed03f0a3..ac548b63d 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 ad1732f39..e57bb9579 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 ec072002c..451c2884f 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 50191482f..cc7b040a8 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 ce3c8f31b..d459c2a7e 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 4bb75c1c8..b80828e54 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 e397c176f..8729ca411 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 6e770c085..ca38fd53a 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 863f394ec..345c3e825 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 8abec3f03..0a7aaa72f 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 92dde3d4d..c641693e2 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 ec8bde79f..23d278cbb 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 2ca55c97a..e5ce2b3b0 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 78b9660f0..9064b38ec 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() {