More strict structure for disabled flags

This issue has been tracked since 2023-01-22.

Current mechanism about disabled is simplified and have some problems. For example, disabling a folder prevents pointer events for its children, but not prevent key events for them.

Ideally, they should have more strict structure like this:

when the container is disabled:
  its children are also disabled

when the child is disabled:
  it doesn't affect to its parent

so...

disabled of the component = parent.disabled || its.disabled

I think that adding parentViewProps field to ViewProps might be a good idea.

cocopon wrote this answer on 2023-01-25

Implemented in #460.

More Details About Repo
Owner Name cocopon
Repo Name tweakpane
Full Name cocopon/tweakpane
Language TypeScript
Created Date 2016-05-10
Updated Date 2023-03-17
Star Count 2603
Watcher Count 19
Fork Count 71
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date