Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Apr 23, 2025

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

@nfebe nfebe added 3. to review Waiting for reviews feature: sharing labels Apr 23, 2025
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 📁 Files team Apr 23, 2025
@nfebe nfebe force-pushed the fix/51875/allow-keyboard-input-4-share-expiration-on-chrome branch from 16d2be1 to 3c4640e Compare April 23, 2025 09:38
@nfebe nfebe marked this pull request as ready for review April 23, 2025 09:38
@nfebe nfebe requested a review from a team as a code owner April 23, 2025 09:38
@nfebe nfebe force-pushed the fix/51875/allow-keyboard-input-4-share-expiration-on-chrome branch from 3c4640e to 2f6c171 Compare April 23, 2025 21:43
@miaulalala
Copy link
Contributor

/backport to stable31

@miaulalala
Copy link
Contributor

/backport to stable30

@miaulalala
Copy link
Contributor

/backport to stable29

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 <[email protected]>
@susnux susnux force-pushed the fix/51875/allow-keyboard-input-4-share-expiration-on-chrome branch from 2f6c171 to 3c73f3f Compare April 24, 2025 10:25
@susnux
Copy link
Contributor

susnux commented Apr 24, 2025

/compile

@susnux susnux enabled auto-merge April 24, 2025 10:25
Signed-off-by: nextcloud-command <[email protected]>
@susnux susnux merged commit 43c5232 into master Apr 24, 2025
122 checks passed
@susnux susnux deleted the fix/51875/allow-keyboard-input-4-share-expiration-on-chrome branch April 24, 2025 10:46
@skjnldsv skjnldsv mentioned this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

[Bug]: expiration date can not be set in chrome via keyboard

5 participants