Please sign in to comment.
[FIX] web: kanban: rendering of async widgets
This rev. fixes 3 issues with async (field) widgets in the kanban view. From rev. 5faec34, widget'$el doesn't exist before start. This means that for async widgets, one can't interact with the widget's $el right after calling appentTo. In KanbanRecord, this is exactly what we did for both field widgets (<field name=.../>) and widgets (<widget name=.../>). Moreover, when the kanban view was updated (e.g. when the user refined the search using the search view), and the rendering was async (because of the presence of an async widget), the renderer didn't wait at all for the widget to be ready before updating the view. This caused flickering, mostly, but also a crash in accounting with the JournalDashboardGraph widget (because on_attach_callabck was called before the widget was ready). To reproduce this particular issue, go to accounting, add a filter that doesn't match any record and save it as favorite (default), press F5 (no record is displayed), remove the filter. opw-1925079 opw-1925479 Fixes #30087 Closes #31254
- Loading branch information...
Showing with 126 additions and 13 deletions.