mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +02:00
Fix maxItemText for maxItemCount == 1
Singular/Plural
This commit is contained in:
parent
5dbea2825a
commit
d33e2cd55d
|
@ -69,7 +69,7 @@ export const DEFAULT_CONFIG: Options = {
|
|||
uniqueItemText: 'Only unique values can be added',
|
||||
customAddItemText: 'Only values matching specific conditions can be added',
|
||||
addItemText: (value) => `Press Enter to add <b>"${sanitise(value)}"</b>`,
|
||||
maxItemText: (maxItemCount) => `Only ${maxItemCount} values can be added`,
|
||||
maxItemText: (maxItemCount) => `Only ${maxItemCount} ${maxItemCount == 1 'value' : 'values'} can be added`,
|
||||
valueComparer: (value1, value2) => value1 === value2,
|
||||
fuseOptions: {
|
||||
includeScore: true,
|
||||
|
|
Loading…
Reference in a new issue