diff --git a/types/select2/index.d.ts b/types/select2/index.d.ts index 719e6673f8..f3492b6bb1 100644 --- a/types/select2/index.d.ts +++ b/types/select2/index.d.ts @@ -44,7 +44,7 @@ interface Select2Options { minimumInputLength?: number; maximumInputLength?: number; minimumResultsForSearch?: number; - maximumSelectionSize?: number; + maximumSelectionLength?: number; placeholder?: string | IdTextPair; separator?: string; allowClear?: boolean; @@ -211,4 +211,4 @@ declare class Select2 { $selection: JQuery; $results: JQuery; options: {options: Select2Options}; -} \ No newline at end of file +} diff --git a/types/select2/select2-tests.ts b/types/select2/select2-tests.ts index c10b482cab..5d794e64e0 100644 --- a/types/select2/select2-tests.ts +++ b/types/select2/select2-tests.ts @@ -32,7 +32,7 @@ $("#e5").select2({ } }); -$("#e19").select2({ maximumSelectionSize: 3 }); +$("#e19").select2({ maximumSelectionLength: 3 }); $("#e10").select2({ data: [{ id: 0, text: 'enhancement' }, { id: 1, text: 'bug' }, { id: 2, text: 'duplicate' }, { id: 3, text: 'invalid' }, { id: 4, text: 'wontfix' }] });