Fixed a bug where post reminder modal didn't close (#29615)
* Fixed abug where post reminder modal didnt close * Fixed a test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
89e250e5b7
Коммит
e2020dc0d6
@@ -32,7 +32,8 @@ function PostReminderCustomTimePicker({userId, timezone, onExited, postId, actio
|
||||
|
||||
const handleConfirm = useCallback((dateTime: Moment) => {
|
||||
actions.addPostReminder(userId, postId, toUTCUnix(dateTime.toDate()));
|
||||
}, [actions, postId, userId]);
|
||||
onExited();
|
||||
}, [actions, postId, userId, onExited]);
|
||||
|
||||
return (
|
||||
<DateTimePickerModal
|
||||
|
||||
@@ -11,7 +11,7 @@ exports[`GenericModal should match snapshot for base case 1`] = `
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div
|
||||
role="dialog"
|
||||
role="none"
|
||||
>
|
||||
<div
|
||||
class="fade modal-backdrop in"
|
||||
|
||||
Ссылка в новой задаче
Block a user