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

Publisher: Reset of attribute definitions on text/number field change #1016

Open
iLLiCiTiT opened this issue Nov 19, 2024 · 0 comments
Open
Labels
type: bug Something isn't working

Comments

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Nov 19, 2024

Current Behavior:

If callback of changes on instance does reset attribute definitions on instances, and the changed attribute is text or number field, it causes that the widget looses focus and user can't continue typing.

Expected Behavior:

It should keep focus of the widget.

Additional context:

The issue is that reset of attribute definitions does reset all widgets visible in UI to propagate possible changes/validation/enabled/visible state of wigets. To allow this feature we would have to compare currently available attributes in UI with new attributes and don't recreate them if are the same, and re-use existing widgets if definitions is the same.

@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant