Commit 557d1fc2 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃攢 Merge tag '3.0.24' into develop

馃悰 Add a toLowerCase option for option search
parents fceca71c 3bbbdab1
Pipeline #62962 passed with stage
in 13 seconds
{
"name": "@vue-unistra/formbuilder",
"version": "3.0.23",
"version": "3.0.24",
"main": "dist/index.js",
"files": [
"dist/*",
......
......@@ -335,16 +335,16 @@ export default Vue.extend({
if (search === null) return true;
if (item.displayedBy !== undefined && item.displayedBy.length) {
return itemLabel.includes(search) || item.displayedBy.some((optionId) => {
return itemLabel.toLowerCase().includes(search) || item.displayedBy.some((optionId) => {
const option: Option | undefined = this.getOption(optionId);
if (option) {
return optionId.includes(search) || option.label.includes(search);
return optionId.toLowerCase().includes(search) || option.label.toLowerCase().includes(search);
}
return false;
});
}
return itemLabel.includes(search)
return itemLabel.toLowerCase().includes(search)
},
getOption(id) {
return this.$store.getters['form/getOptionByIdOrValue'](id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment