0👍
✅
You possibly seem to have a wrong reference to this
. In JavaScript context, this
refers to the immediate context, but Vue functions are tied to the context of the class/component.
To prevent this, copy the reference of this to another variable.
data(){
let componentObj = this;
...
And then call the method using that reference.
onClick(picker) {
componentObj.setRefreshRateVisibility(true);
Source:stackexchange.com