Skip to content

Commit 23f8f32

Browse files
RSS1102uyarn
authored andcommitted
fix(Tabs): disable drag event registration in non-drag scenarios (#3738)
1 parent c25561c commit 23f8f32

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
@@ -367,9 +367,10 @@ export default mixins(classPrefixMixins, getGlobalIconMixins()).extend({
367367
},
368368
mounted() {
369369
this.$nextTick(() => {
370-
const { setNavsWrap } = handleDragSort(this.$props);
371-
setNavsWrap(this.$refs.navsWrap as HTMLDivElement);
372-
370+
if (this.dragSort) {
371+
const { setNavsWrap } = handleDragSort(this.$props);
372+
setNavsWrap(this.$refs.navsWrap as HTMLDivElement);
373+
}
373374
this.watchDomChange();
374375
this.calculateNavBarStyle();
375376
this.getMaxScrollLeft();

0 commit comments

Comments
 (0)