diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-29 19:44:07 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-29 19:44:07 +0300 |
| commit | de2f9686452b2bcb6cfe08fe9a5b648ec6bd5ed2 (patch) | |
| tree | 2bce5bd7f6210a75e2c637ad576909668d990fec /src/components/status/status.js | |
| parent | e1483488c7982daa9272c570f0a5a9296519ef31 (diff) | |
fix?
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index ec0bd25a..a925f30b 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -69,7 +69,7 @@ const controlledOrUncontrolledGetters = list => list.reduce((res, name) => { const controlledName = `controlled${camelized}` const uncontrolledName = `uncontrolled${camelized}` res[name] = function () { - return (this.$props[toggle] !== undefined && this[toggle]) ? this[controlledName] : this[uncontrolledName] + return ((this.$data[toggle] !== undefined || this.$props[toggle] !== undefined) && this[toggle]) ? this[controlledName] : this[uncontrolledName] } return res }, {}) |
