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

BUGFIX: Remove duplicated apply button in DateInput & handle onChange on date selection #3736

Merged

Conversation

Alvadda
Copy link
Collaborator

@Alvadda Alvadda commented Mar 11, 2024

The current date picker required a separate click to a blue "apply" button to actually set the field value. Afterwards the editors still had to click the inspector apply which leads to confusion. This is especially problematic in the CreationDialog where the apply button often is below the visible area which causes additional confusion.

This change improved DateTime Editor UX by auto-applying date/time selections which allowed to remove the DatePicker's "Apply" button entirely. The DateTime Editor still closes once the editor clicks outside.

For testings: Define a DateTime property and verify that you can set the date value without second apply.

Fixes: #3421

@github-actions github-actions bot added Bug Label to mark the change as bugfix 8.4 labels Mar 11, 2024
@mficzel mficzel changed the title bugfix: Remove duplicated apply button in DateInput & handle onChange on date selection BUGFIX: Remove duplicated apply button in DateInput & handle onChange on date selection Mar 11, 2024
@mficzel mficzel marked this pull request as ready for review March 11, 2024 14:25
Copy link
Contributor

@grebaldi grebaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one 👍

I was able to verify that this change works as expected. The good ol' apply button of the DateTimeEditor has been a pain for many, so thanks a lot for finally removing it @Alvadda!

EDIT: Follow-up for Neos.Neos, because the translation label for the button will be obsolete once this is merged: neos/neos-development-collection#4928

Copy link
Member

@markusguenther markusguenther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first contribution 💙
That is a change editors will love.

@grebaldi
Copy link
Contributor

This needs to target 8.3, right? @markusguenther

@mhsdesign mhsdesign changed the base branch from 8.4 to 8.3 March 14, 2024 09:23
@github-actions github-actions bot added 8.3 and removed 8.4 labels Mar 14, 2024
Christian Pansch added 2 commits March 14, 2024 12:02
… on date selection directly

BUGFIX: Remove duplicated apply button in DateInput & handle onChange on date selection directly
@Alvadda Alvadda force-pushed the bugfix/removeDuplicateApplyButtonsOnDateTimePicker branch from 7bfae8a to 5d7b12b Compare March 14, 2024 11:02
@ahaeslich ahaeslich merged commit cbe84c3 into neos:8.3 Mar 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Remove separate "apply"-Button from DateTime Editor
4 participants