debug
This commit is contained in:
parent
7f3b678477
commit
60695b583a
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ 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]
|
||||
}
|
||||
return res
|
||||
|
|
Loading…
Add table
Reference in a new issue