Skip to content

Commit 795eb5c

Browse files
committed
display outside of cb
1 parent 00e2818 commit 795eb5c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "Base Custom Webcomponent",
33
"name": "@node-projects/base-custom-webcomponent",
4-
"version": "0.27.5",
4+
"version": "0.27.6",
55
"type": "module",
66
"main": "./dist/index.js",
77
"author": "",

src/BaseCustomWebComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export class BaseCustomWebComponentNoAttachedTemplate extends HTMLElement {
191191
} else if (a.name.startsWith('bcw:')) {
192192
if (a.name === 'bcw:visible') {
193193
const value = a.value.substring(2, a.value.length - 2).replaceAll('&', '&');
194-
const b = () => this._bindingSetElementCssValue(<HTMLElement | SVGElement>node, 'display', value + "?'" + node.style.display + "':'none'", repeatBindingItems, host, context);
194+
const display = node.style.display;
195+
const b = () => this._bindingSetElementCssValue(<HTMLElement | SVGElement>node, 'display', value + "?'" + display + "':'none'", repeatBindingItems, host, context);
195196
this._bindings.push([b, null]);
196197
b();
197198
}

0 commit comments

Comments
 (0)