mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 20:25:18 +02:00
Merge 02b2cd2aed
into 5dbea2825a
This commit is contained in:
commit
52e356e33c
|
@ -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