Replacing all spaces in string with dashes, instead of some

This commit is contained in:
brydon1 2023-06-30 13:46:46 -04:00
parent 2815d88858
commit 8bc0a291cb

View file

@ -121,9 +121,7 @@ export default {
return this.isMultiSelect ? "checkbox" : "radio"; return this.isMultiSelect ? "checkbox" : "radio";
}, },
buttonId() { buttonId() {
return `${this.groupName?.replace(" ", "-")}-${this.value return `${this.groupName}-${this.value}`.replaceAll(" ", "-");
?.toString()
?.replace(" ", "-")}`;
}, },
isValueSelectedOnClick() { isValueSelectedOnClick() {
return this.isMultiSelect || this.selectingInitiatesLoad; return this.isMultiSelect || this.selectingInitiatesLoad;