Skip to content

[stable31] fix(files_sharing): Improve expiration date input change handling - #52409

Merged
nfebe merged 2 commits into
stable31from
backport/52364/stable31
Apr 24, 2025
Merged

[stable31] fix(files_sharing): Improve expiration date input change handling#52409
nfebe merged 2 commits into
stable31from
backport/52364/stable31

Conversation

@backportbot

@backportbotbackportbotBot commented Apr 24, 2025

Copy link
Copy Markdown

Backport of #52364

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

If the time picker component is emitting a Date object already, then there is redundant call of `new Date(new Date())` and
therefore introduces subtle bugs, for example on chrome users could not enter expiration date with keyboard.
- Use @update:model-value instead of @change/@input for more reliable date updates
- Ensure null and invalid dates are handled correctly in onExpirationChange
- Validate date input before updating defaultExpirationDateEnabled
Resolves : #51875
Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the backport/52364/stable31 branch from b365fc5 to 1d52c09CompareApril 24, 2025 11:04
@nfebe

Copy link
Copy Markdown
Contributor

/compile

@nfebe
nfebe marked this pull request as ready for review April 24, 2025 11:18
@nfebe
nfebe enabled auto-merge April 24, 2025 11:18
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe merged commit 989f24f into stable31Apr 24, 2025
@nfebe
nfebe deleted the backport/52364/stable31 branch April 24, 2025 19:39
@blizzzblizzz mentioned this pull request May 5, 2025
10 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsfeature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@nfebe@susnux@nextcloud-command