mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-26 17:31:02 +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',
|
uniqueItemText: 'Only unique values can be added',
|
||||||
customAddItemText: 'Only values matching specific conditions can be added',
|
customAddItemText: 'Only values matching specific conditions can be added',
|
||||||
addItemText: (value) => `Press Enter to add <b>"${sanitise(value)}"</b>`,
|
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,
|
valueComparer: (value1, value2) => value1 === value2,
|
||||||
fuseOptions: {
|
fuseOptions: {
|
||||||
includeScore: true,
|
includeScore: true,
|
||||||
|
|
Loading…
Reference in a new issue