From be38df32ec8aab1047a4da0107050f948742d091 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Thu, 30 May 2024 16:12:01 -0400 Subject: [PATCH] tweak(ui): allow setting render more for JustHTML --- src/UI/Components/JustHTML.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/UI/Components/JustHTML.js b/src/UI/Components/JustHTML.js index b1233d69..ace8548f 100644 --- a/src/UI/Components/JustHTML.js +++ b/src/UI/Components/JustHTML.js @@ -15,4 +15,13 @@ export default def(class JustHTML extends Component { $(this.dom_).find('span').html(html); }); } + + _set_dom_based_on_render_mode({ property_values }) { + if ( property_values.no_shadow ) { + this.dom_ = this; + return; + } + + return super._set_dom_based_on_render_mode(); + } });