Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 488 fix disabled fields get enabled when using properties dropdown #716

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

theyiwenliu
Copy link

  • Commit 1: Check if it is always disabled before enabling any editor
    Otherwise editors are enabled when any properties dropdown is used.

  • Commit 2: If function disable is called with param always_disabled set to true, update flag always_disabled for any editor
    We need a way to tell if the disable() is called to "always disable" the editor, or just temporarily (e.g. when properties dropdown is open, it temporarily disables enabled-fields and enables them when it is closed)
    It could be done in different ways, the other way I can think of is to have public "disable" and private "_disable function", and only in public one we set "always_disabled" flag to true, and then call private _disable.
    Internal disable() calls should be replaced with _disable(), and users can use editor.disable() to "always disable" the editor.

@theyiwenliu
Copy link
Author

Fixed #488

… update flag always_disabled for any editor
@theyiwenliu theyiwenliu force-pushed the issue-488_Fix_disabled_fields_get_enabled_when_using_properties_dropdown branch from 16ec92f to 72bfa10 Compare January 15, 2017 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant