Skip to content

Commit

Permalink
Reverted #4953
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jan 23, 2024
1 parent 6862264 commit 8f7ee3a
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 42 deletions.
2 changes: 1 addition & 1 deletion components/lib/accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
this.d_activeIndex = newValue;
}
},
beforeMount() {
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,8 @@ export default {
this.autoUpdateModel();
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
updated() {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/cascadeselect/CascadeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ export default {
this.autoUpdateModel();
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
beforeUnmount() {
Expand Down
5 changes: 2 additions & 3 deletions components/lib/contextmenu/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ export default {
}
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.global) {
this.bindDocumentContextMenuListener();
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dock/DockSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
this.id = newValue || UniqueComponentId();
}
},
beforeMount() {
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ export default {
this.autoUpdateModel();
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
this.bindLabelClickListener();
},
Expand Down
4 changes: 1 addition & 3 deletions components/lib/listbox/Listbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ export default {
this.autoUpdateModel();
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
methods: {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/megamenu/MegaMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ export default {
}
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener();
},
beforeUnmount() {
Expand Down
5 changes: 2 additions & 3 deletions components/lib/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ export default {
resizeListener: null,
container: null,
list: null,
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
if (!this.popup) {
this.bindResizeListener();
this.bindOutsideClickListener();
Expand Down
4 changes: 1 addition & 3 deletions components/lib/menubar/Menubar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ export default {
outsideClickListener: null,
container: null,
menubar: null,
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.bindMatchMediaListener();
},
beforeUnmount() {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ export default {
this.autoUpdateModel();
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.autoUpdateModel();
},
beforeUnmount() {
Expand Down
5 changes: 2 additions & 3 deletions components/lib/orderlist/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ export default {
this.reorderDirection = null;
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.responsive) {
this.createStyle();
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/panelmenu/PanelMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
this.id = newValue || UniqueComponentId();
}
},
beforeMount() {
mounted() {
this.id = this.id || UniqueComponentId();
},
methods: {
Expand Down
1 change: 0 additions & 1 deletion components/lib/picklist/PickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ export default {
this.destroyStyle();
this.destroyMedia();
},
beforeMount() {},
mounted() {
this.id = this.id || UniqueComponentId();
Expand Down
7 changes: 3 additions & 4 deletions components/lib/speeddial/SpeedDial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ export default {
this.d_visible = newValue;
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
if (this.type !== 'linear') {
const button = DomHandler.findSingle(this.container, '[data-pc-name="button"]');
const firstItem = DomHandler.findSingle(this.list, '[data-pc-section="menuitem"]');
Expand All @@ -105,7 +104,7 @@ export default {
this.bindDocumentClickListener();
}
},
beforeMount() {
beforeUnmount() {
this.unbindDocumentClickListener();
},
methods: {
Expand Down
4 changes: 1 addition & 3 deletions components/lib/tabview/TabView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ export default {
this.scrollInView({ index: newValue });
}
},
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.id = this.id || UniqueComponentId();
this.updateInkBar();
this.scrollable && this.updateButtonState();
},
Expand Down
2 changes: 1 addition & 1 deletion components/lib/tieredmenu/TieredMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
}
}
},
beforeMount() {
mounted() {
this.id = this.id || UniqueComponentId();
},
beforeUnmount() {
Expand Down

0 comments on commit 8f7ee3a

Please sign in to comment.