Skip to content

Commit 36b1e73

Browse files
authored
fix(Tabs): disable drag event registration in non-drag scenarios (#3738)
1 parent cb52e3c commit 36b1e73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/tabs/tab-nav.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,10 @@ export default mixins(classPrefixMixins, getGlobalIconMixins()).extend({
365365
},
366366
mounted() {
367367
this.$nextTick(() => {
368-
const { setNavsWrap } = handleDragSort(this.$props);
369-
setNavsWrap(this.$refs.navsWrap as HTMLDivElement);
370-
368+
if (this.dragSort) {
369+
const { setNavsWrap } = handleDragSort(this.$props);
370+
setNavsWrap(this.$refs.navsWrap as HTMLDivElement);
371+
}
371372
this.watchDomChange();
372373
this.calculateNavBarStyle();
373374
this.getMaxScrollLeft();

0 commit comments

Comments
 (0)