mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
5b157f0adb
While seemingly correct, an onremove method in Modal that triggers animateHide is problematic, because if one modal is opened from another, the one currently open will be removed from the DOM, triggering animateHide, and closing the new modal. To compensate, an onupdate method now closes a modal if one is open but shouldn't be; this supports the functionality of the old method when the modal is closed not from the modal instance itself (e.g. app.modal.close()) This is not ideal, but necessary. We should consider eventually expanding the modal system to support showing multiple modals at the same time (stacked over each other). Then, we can move this back to individual modals. |
||
---|---|---|
.. | ||
dist | ||
src | ||
.prettierrc.json | ||
admin.js | ||
forum.js | ||
package-lock.json | ||
package.json | ||
shims.d.ts | ||
tsconfig.json | ||
webpack.config.js |