Update src/compiler/compile/nodes/Element.ts

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
pull/7880/head
Simon H 4 years ago committed by GitHub
parent 1af22b0585
commit cf1014f83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -713,7 +713,7 @@ export default class Element extends Node {
const aria_hidden_attribute = attribute_map.get('aria-hidden');
const aria_hidden_exist = aria_hidden_attribute && aria_hidden_attribute.get_static_value();
if (attribute_map.has('muted') || aria_hidden_exist) {
if (attribute_map.has('muted') || aria_hidden_exist === 'true')
return;
}

Loading…
Cancel
Save