mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:03:43 +08:00
FIX: disables the modal on mobile bookmark-menu (#26958)
It's a temporary solution while I work a better solution. The problem here is quite tricky. We are showing a modal from a modal. But if we close the previous modal, before the second one is show it means we destroy the menu holding the first modal which prevents showing the second modal. One possible solution would be to refactor d-modal’s show function. At the moment if you await on show it will await until closed and not when the modal has been inserted to the DOM. It means we don't have a clean moment to close the d-menu. The second issue it that even though it's possible to have multiple modals on screen, the close modal assumes only one active modal at a time.
This commit is contained in:
parent
9e696a0305
commit
2a2eaf835f
|
@ -246,7 +246,6 @@ export default class BookmarkMenu extends Component {
|
|||
@onClose={{this.onCloseMenu}}
|
||||
@onShow={{this.onShowMenu}}
|
||||
@onRegisterApi={{this.onRegisterApi}}
|
||||
@modalForMobile={{true}}
|
||||
@arrow={{false}}
|
||||
>
|
||||
<:content>
|
||||
|
|
Loading…
Reference in New Issue
Block a user