File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -260,13 +260,22 @@ class QueryRenderChild extends MarkdownRenderChild {
260
260
// that we get correct values for isConnected and isShown().
261
261
// (setTimeout(, 0) seemed to work too...)
262
262
if ( ! this . containerEl . isConnected ) {
263
+ // Example reasons why we might not be "connected":
264
+ // - This Tasks query block is contained with within another plugin's code block,
265
+ // such as a Tabs plugin. The file is closed and that plugin has not correctly
266
+ // tidied up, so we have not been deleted.
263
267
this . queryResultsRenderer . query . debug (
264
268
'[render] QueryRenderChild.render() Ignoring redraw request, as code block is not connected.' ,
265
269
) ;
266
270
return ;
267
271
}
268
272
269
273
if ( ! this . containerEl . isShown ( ) ) {
274
+ // Example reasons why we might not be "shown":
275
+ // - We are in a collapsed callout.
276
+ // - We are in a note which is obscured by another note.
277
+ // - We are in a Tabs plugin, in a tab which is not at the front.
278
+ // - The user has not yet scrolled to this code block's position in the file.
270
279
this . queryResultsRenderer . query . debug (
271
280
'[render] QueryRenderChild.render() Ignoring redraw request, as code block is not shown.' ,
272
281
) ;
You can’t perform that action at this time.
0 commit comments