vue-treeselect
vue-treeselect copied to clipboard
Seeing (Unknown) when no option is selected
Here is the markup of my component
<treeselect
v-model="value"
:multiple="false"
:options="options"
:defaultExpandLevel="Infinity"
:alwaysOpen="false"
placeholder="Select Practice area"
/>
I find an (Unknown) when none of the options is selected.
The version of the component I am using is "@riophae/vue-treeselect": "^0.4.0"
The issue is between empty and null
get () { return this.value === '' ? null: this.value; },
Fixes for me - when I try to set to empty, I send null to treeselect
The issue is between empty and null
get () { return this.value === '' ? null: this.value; },Fixes for me - when I try to set to empty, I send null to treeselect
It works! Thank you!
The issue is between empty and null
get () { return this.value === '' ? null: this.value; },Fixes for me - when I try to set to empty, I send null to treeselect
The issue is between empty and null
get () { return this.value === '' ? null: this.value; },Fixes for me - when I try to set to empty, I send null to treeselectIt works! Thank you!
Sir can you kindly tell where should "get () { return this.value === '' ? null: this.value; }" be?
The issue is between empty and null
get () { return this.value === '' ? null: this.value; },Fixes for me - when I try to set to empty, I send null to treeselect
Sir can you kindly tell where should "get () { return this.value === '' ? null: this.value; }" be?
@DDorj
See getter and setter: https://vuejs.org/v2/guide/computed.html#Computed-Setter
get () {} is the same as get: function () {}.