This commit is contained in:
Henry Jameson 2022-03-29 12:34:41 +03:00
parent 60695b583a
commit 3cf92ee51e

View file

@ -69,7 +69,6 @@ const controlledOrUncontrolledGetters = list => list.reduce((res, name) => {
const controlledName = `controlled${camelized}`
const uncontrolledName = `uncontrolled${camelized}`
res[name] = function () {
debugger
console.log(this)
console.log(Object.getOwnPropertyDescriptor(this, toggle))
return (Object.getOwnPropertyDescriptor(this, toggle) && this[toggle]) ? this[controlledName] : this[uncontrolledName]