Fixed #2169 - Scrollable TabView forwardIsDisabled defect

pull/2173/head 3.12.0
Tuğçe Küçükoğlu 2022-02-15 14:59:13 +03:00 committed by Tuğçe Küçükoğlu
parent b6cc6e148d
commit f649c22bf0
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ export default {
const width = DomHandler.getWidth(content);
this.backwardIsDisabled = scrollLeft === 0;
this.forwardIsDisabled = scrollLeft === scrollWidth - width;
this.forwardIsDisabled = parseInt(scrollLeft) === scrollWidth - width;
},
getKey(tab, i) {
return (tab.props && tab.props.header) ? tab.props.header : i;