mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-18 20:15:47 -04:00
(bug) fix <ExpendableList>'s only-one-item-hidden behaviour
This commit is contained in:
parent
af7c47d079
commit
9340b4fb8e
@ -52,9 +52,9 @@ const updateData = (): void => {
|
||||
newShowLimit = limit;
|
||||
newHiddenCount = props.values.length - limit;
|
||||
}
|
||||
if (hiddenCount.value === 1) {
|
||||
newShowLimit--;
|
||||
newHiddenCount++;
|
||||
if (newHiddenCount === 1) {
|
||||
newShowLimit++;
|
||||
newHiddenCount--;
|
||||
}
|
||||
|
||||
allShown.value = props.expand;
|
||||
|
Loading…
x
Reference in New Issue
Block a user