diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-29 12:41:34 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-29 12:43:42 +0300 |
| commit | 3799983d4f89cad4dbf4595f49a768a66b72b07e (patch) | |
| tree | 44b13b23e35a317477f1284cf47773fdf4ff0e7c /src/components/status/status.js | |
| parent | 3f04ebd89ac889c39da7f652d77426c6b690ae53 (diff) | |
fix production build's reply not working in tree mode
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 ee0da4dc..c6b24c72 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 (Object.getOwnPropertyDescriptor(this, toggle) && this[toggle]) ? this[controlledName] : this[uncontrolledName] + return (this.$props[toggle] && this[toggle]) ? this[controlledName] : this[uncontrolledName] } return res }, {}) |
