mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
ed2dae6d1a
When the loading slider is enabled, the rendering of `application.hbs` is slightly delayed compared to the old 'spinner' strategy. This means that if a route tried to render a dialog during its `model()` hook, the dialog wrapper element would not be present and an error would occur. This commit detects that situation and delays rendering the error until the next runloop iteration. If the element is still not found, we print a useful error to the console. In the long term, we should ideally convert the dialog service to use a pure-ember rendering strategy instead of leaning on a11y-dialog. But for now, this workaround should resolve the problems identified by the chat system specs. |
||
---|---|---|
.. | ||
addon | ||
app | ||
index.js | ||
package.json |