Skip to content

Commit 0e67f2e

Browse files
authored
Merge pull request #200 from tokend/fix/firefox-modal-close-issue
fixed modal close issue
2 parents 5d015f1 + 3621535 commit 0e67f2e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
Please check our [developers guide](https://gitlab.com/tokend/developers-guide)
88
for further information about branching and tagging conventions.
99

10+
## [1.14.0-rc.1] - 2022-08-03
11+
#### Fixed
12+
- Modal `event.path` on Firefox
13+
1014
## [1.14.0-rc.0] - 2021-02-09
1115
#### Added
1216
- Ability to delete key-value
@@ -590,7 +594,8 @@ for further information about branching and tagging conventions.
590594

591595
## [1.3.0] - 2019-03-01
592596

593-
[Unreleased]: https://github.com/tokend/admin-panel/compare/1.14.0-rc.0...HEAD
597+
[Unreleased]: https://github.com/tokend/admin-panel/compare/1.14.0-rc.1...HEAD
598+
[1.14.0-rc.1]: https://github.com/tokend/admin-panel/compare/1.14.0-rc.0...1.14.0-rc.1
594599
[1.14.0-rc.0]: https://github.com/tokend/admin-panel/compare/1.13.0...1.14.0-rc.0
595600
[1.13.0]: https://github.com/tokend/admin-panel/compare/1.13.0-rc.1...1.13.0
596601
[1.13.0-rc.1]: https://github.com/tokend/admin-panel/compare/1.13.0-rc.0...1.13.0-rc.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "admin-panel",
3-
"version": "1.14.0-rc.0",
3+
"version": "1.14.0-rc.1",
44
"description": "A TokenD admin client",
55
"author": "Distributed Lab <contact@distributedlab.com>",
66
"private": true,

src/components/common/modals/Modal.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ export default {
2828
onClick (event) {
2929
let isContentClicked
3030
try {
31-
isContentClicked = event.path
32-
.map(item => item.className)
31+
const path = event.path || (event.composedPath && event.composedPath())
32+
isContentClicked = path
33+
.map(item => {
34+
return item.className
35+
})
3336
.includes('modal__content')
3437
} catch (error) { // older browsers
3538
isContentClicked = event.target.className === 'modal__content'

0 commit comments

Comments
 (0)