Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293910

Empty highlighted region returns whitespace which will always evaluate to TRUE when using twig IF

$
0
0

Reproduce:

Fresh install of rc4 and inspect the highlighted region with Bartik as the default theme.

Expected:

No output from Classy's region.html.twig

Actual:

An empty region wrapper.

Classy's region.html.twig is checking for region content using twig if which will evaluate whitespace as TRUE and as the highlighted region returns whitespace even when empty an empty region wrapper is output.

Edit: removing the Status messages block from the highlighted region results results in no region wrapper being printed.


Viewing all articles
Browse latest Browse all 293910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>