mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Allow user to finish typing date before formatting
Debounce `onExpirationChange` to avoid calling `formatDateToString` on invalid on uncompletely inputed date strings. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
67e3367c48
commit
b5edb389bc
1 changed files with 2 additions and 3 deletions
|
|
@ -221,10 +221,9 @@ export default {
|
|||
*
|
||||
* @param {Date} date
|
||||
*/
|
||||
onExpirationChange(date) {
|
||||
onExpirationChange: debounce((date) => {
|
||||
this.share.expireDate = this.formatDateToString(new Date(date))
|
||||
},
|
||||
|
||||
}, 500),
|
||||
/**
|
||||
* Uncheck expire date
|
||||
* We need this method because @update:checked
|
||||
|
|
|
|||
Loading…
Reference in a new issue