diff --git a/src/tag-input/tag-input.tsx b/src/tag-input/tag-input.tsx index d2a7a0d37..f3177b2aa 100644 --- a/src/tag-input/tag-input.tsx +++ b/src/tag-input/tag-input.tsx @@ -130,6 +130,7 @@ export default defineComponent({ watch( () => isScrollable.value, (v) => { + if (props.excessTagsDisplayType !== 'scroll') return; const scrollElementClass = `${classPrefix.value}-input__prefix`; const scrollElement = tagInputRef.value.$el.querySelector(`.${scrollElementClass}`); if (v) scrollElement.classList.add(`${scrollElementClass}--scrollable`); @@ -239,7 +240,7 @@ export default defineComponent({ click: this.onInnerClick, compositionstart: this.onInputCompositionstart, compositionend: this.onInputCompositionend, - // scroll: this.onWheel, + mousewheel: this.onWheel, }} /> ); diff --git a/test/snap/__snapshots__/csr.test.js.snap b/test/snap/__snapshots__/csr.test.js.snap index 839c89640..a4cb3f161 100644 --- a/test/snap/__snapshots__/csr.test.js.snap +++ b/test/snap/__snapshots__/csr.test.js.snap @@ -131955,6 +131955,82 @@ exports[`csr snapshot test > csr test ./src/tag-input/_example/excess.vue 1`] = /> +