Skip to content

Commit

Permalink
Update useArrayList.tsx (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpaxqin authored and janryWang committed Dec 27, 2019
1 parent d957567 commit b6664b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useArrayList = (index: number = 0) => {
? newValue.length > minItems && !isDisable
: !isDisable
const allowAddition = isNum(maxItems)
? newValue.length <= maxItems && !isDisable
? newValue.length < maxItems && !isDisable
: !isDisable

const context = {
Expand Down

0 comments on commit b6664b7

Please sign in to comment.