Skip to content

Commit

Permalink
Fixed #844 - Knob replaceAll causes issue with nuxt SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 20, 2021
1 parent 1c36947 commit 3b295a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/knob/Knob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default {
return this.valueRadians > this.zeroRadians ? 0 : 1;
},
valueToDisplay() {
return this.valueTemplate.replaceAll("{value}", this.modelValue);
return this.valueTemplate.replace(/{value}/g, this.modelValue);
}
}
}
Expand Down

0 comments on commit 3b295a1

Please sign in to comment.