We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27ae94 commit 4d04f95Copy full SHA for 4d04f95
src/BootstrapBlazor/Components/Layout/LayoutSplitebar.razor.js
@@ -22,10 +22,10 @@ export function init(id) {
22
e => {
23
section.classList.add('drag');
24
const widthString = getComputedStyle(section).getPropertyValue('--bb-layout-sidebar-width');
25
- if (widthString === null) {
26
- section.setProperty('--bb-layout-sidebar-width', `0`);
+ if (widthString === '') {
+ section.style.setProperty('--bb-layout-sidebar-width', '0');
27
+ widthString = '0';
28
}
- widthString ??= '0';
29
width = parseInt(widthString);
30
originX = e.clientX || e.touches[0].clientX;
31
},
0 commit comments