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

Should be possible to access initial value #9029

Closed
taauntik opened this issue Apr 19, 2024 · 1 comment
Closed

Should be possible to access initial value #9029

taauntik opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
feature request forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@taauntik
Copy link

Forum post

Hello, team!

Coming to Bryntum from an ExtJS background, we noticed that the fields have no similar concept of original value.

We used it extensively for resetting fields to their original values. This is also the underlying mechanism for the form's dirty state which allows us to check if the form was changed and what specific fields were changed.

For Bryntum, one of our initial thoughts was to have a record property set on the fields' wrapping container/panel, which will help us track the changes and revert them. But this seems like an overkill for certain situations.

Do you have any suggestions on how to tackle this?
Are there any plans to add something similar to Bryntum in the near future?

Regards,
Serghei

@taauntik taauntik added bug Something isn't working forum Issues from forum OEM OEM customer labels Apr 19, 2024
@isglass
Copy link
Contributor

isglass commented Apr 19, 2024

Probably add a fn to acess meta.modifed to get the initial value. originalData wont be safe with useRawData

@isglass isglass added feature request and removed bug Something isn't working labels Apr 19, 2024
@isglass isglass self-assigned this Apr 19, 2024
@isglass isglass changed the title Should be possible to access intial value Should be possible to access initial value Apr 19, 2024
@isglass isglass added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed in progress ready for review Issue is fixed, the pull request is being reviewed labels Apr 19, 2024
@isglass isglass added this to the 5.6.10 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request forum Issues from forum OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants