Skip to content

[stable29] fix(files_sharing): Improve expiration date input change handling - #52407

Merged
nfebe merged 1 commit into
stable29from
backport/52364/stable29
Apr 24, 2025
Merged

[stable29] fix(files_sharing): Improve expiration date input change handling#52407
nfebe merged 1 commit into
stable29from
backport/52364/stable29

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.

@miaulalala

Copy link
Copy Markdown
Contributor

/compile amend /

@nfebe

Copy link
Copy Markdown
Contributor

/compile amend

@nfebe
nfebeforce-pushed the backport/52364/stable29 branch from d9e6d56 to 5f62b6aCompareApril 24, 2025 18:51
@nfebe
nfebe marked this pull request as ready for review April 24, 2025 18:51
@nfebe
nfebe enabled auto-merge April 24, 2025 18:51
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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nfebe
nfebe merged commit 1cb6d58 into stable29Apr 24, 2025
@nfebe
nfebe deleted the backport/52364/stable29 branch April 24, 2025 19:39
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

@miaulalala@nfebe@susnux