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

Adding datetime field to task edit breaks the editor #3882

Closed
bmblb opened this issue Dec 9, 2021 · 2 comments
Closed

Adding datetime field to task edit breaks the editor #3882

bmblb opened this issue Dec 9, 2021 · 2 comments
Labels
bug Something isn't working forum Issues from forum not reproducible

Comments

@bmblb
Copy link

bmblb commented Dec 9, 2021

Forum post

TaskBoard version: 4.3.3
Browser version: Google Chrome 91.0.4472.114

Need:

For my project need, I need to use a date time field but as I see this field isn't supported.

Scenario:
Using this example
bryntum_datetimefield.gif

Thank you for your help
Best regards


Notice after setting field type to datetime editor values are empty

@bmblb bmblb added bug Something isn't working forum Issues from forum labels Dec 9, 2021
@bmblb
Copy link
Author

bmblb commented Dec 9, 2021

Problem is with DateTime field logic. It is setting values to inner date and time fields and those bubble that change up eventually calling record updater too soon - updateRecord is called long before task editor items are instantiated.
Possible fix:

// DateTimeField#syncInputFieldValue
// we're telling inner fields to skip normal update flow on the configuring phase
me.timeField.inputting = me.isConfiguring;
me.timeField.value = me.dateField.value = me.inputValue;
me.timeField.inputting = false;

@bmblb
Copy link
Author

bmblb commented Aug 12, 2022

Not reproducible in 5.1.1 release

@bmblb bmblb closed this as completed Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum not reproducible
Projects
None yet
Development

No branches or pull requests

1 participant