mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
fix(filtering): transform letters to locale specific cases (#1511)
This commit is contained in:
+2
-2
@@ -189,7 +189,7 @@ disabled: {
|
|||||||
|
|
||||||
## dropdownShouldOpen <Badge text="v3.12.0+" />
|
## dropdownShouldOpen <Badge text="v3.12.0+" />
|
||||||
|
|
||||||
Determines whether the dropdown should open. Used
|
Determines whether the dropdown should open. Used
|
||||||
for overriding the default dropdown behaviour. Receives
|
for overriding the default dropdown behaviour. Receives
|
||||||
the vue-select instance as the single argument to the function.
|
the vue-select instance as the single argument to the function.
|
||||||
|
|
||||||
@@ -250,7 +250,7 @@ if the option should be displayed.
|
|||||||
filterBy: {
|
filterBy: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default(option, label, search) {
|
default(option, label, search) {
|
||||||
return (label || '').toLowerCase().indexOf(search.toLowerCase()) > -1
|
return (label || '').toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -440,7 +440,11 @@ export default {
|
|||||||
filterBy: {
|
filterBy: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default(option, label, search) {
|
default(option, label, search) {
|
||||||
return (label || '').toLowerCase().indexOf(search.toLowerCase()) > -1
|
return (
|
||||||
|
(label || '')
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
.indexOf(search.toLocaleLowerCase()) > -1
|
||||||
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user