mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix: prevent redirecting to link when deleting file (#1047)
* Bump tinymce from 5.10.4 to 5.10.7 Bumps [tinymce](https://github.com/tinymce/tinymce/tree/HEAD/modules/tinymce) from 5.10.4 to 5.10.7. - [Release notes](https://github.com/tinymce/tinymce/releases) - [Changelog](https://github.com/tinymce/tinymce/blob/5.10.7/modules/tinymce/CHANGELOG.md) - [Commits](https://github.com/tinymce/tinymce/commits/5.10.7/modules/tinymce) --- updated-dependencies: - dependency-name: tinymce dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * fix: prevent redirecting to link when deleting file Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shams <shams.mosowi@gmail.com> Co-authored-by: Han Tuerker <burhan.tuerker@gmail.com>
This commit is contained in:
@@ -88,14 +88,16 @@ export default function File_({
|
||||
onDelete={
|
||||
disabled
|
||||
? undefined
|
||||
: () =>
|
||||
: (e) => {
|
||||
e.preventDefault();
|
||||
confirm({
|
||||
handleConfirm: () => handleDelete(file),
|
||||
title: "Delete file?",
|
||||
body: "This file cannot be recovered after",
|
||||
confirm: "Delete",
|
||||
confirmColor: "error",
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
tabIndex={tabIndex}
|
||||
style={{ width: "100%", cursor: "pointer" }}
|
||||
|
||||
@@ -12043,9 +12043,9 @@ tiny-invariant@^1.0.6:
|
||||
integrity sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==
|
||||
|
||||
tinymce@^5, tinymce@^5.5.1:
|
||||
version "5.10.6"
|
||||
resolved "https://registry.yarnpkg.com/tinymce/-/tinymce-5.10.6.tgz#ea03927e9d20c035619dfd32ec4fd471c55e32c5"
|
||||
integrity sha512-bnF2LUoycDsoZZLQBNHbOijrmoJuEeR1rQdqgo4s77BedufpOVnDh00OZKbseHeTMCxhVH05wvOqxLsi6vpeZw==
|
||||
version "5.10.7"
|
||||
resolved "https://registry.yarnpkg.com/tinymce/-/tinymce-5.10.7.tgz#d89d446f1962f2a1df6b2b70018ce475ec7ffb80"
|
||||
integrity sha512-9UUjaO0R7FxcFo0oxnd1lMs7H+D0Eh+dDVo5hKbVe1a+VB0nit97vOqlinj+YwgoBDt6/DSCUoWqAYlLI8BLYA==
|
||||
|
||||
tmp@^0.2.1:
|
||||
version "0.2.1"
|
||||
|
||||
Reference in New Issue
Block a user