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 ce251a0 commit 4487277Copy full SHA for 4487277
src/lib/renderer.ts
@@ -26,15 +26,13 @@ const updateComponent = (
26
27
// Apply knobs using properties or attributes
28
Object.keys(knobs).forEach((key: string) => {
29
- const { knobType, attribute, value, custom } = knobs[key];
+ const { attribute, value, custom } = knobs[key];
30
if (custom && attribute) {
31
if (typeof value === 'string' && value) {
32
component.setAttribute(attribute, value);
33
} else {
34
component.removeAttribute(attribute);
35
}
36
- } else if (knobType === 'boolean') {
37
- component.toggleAttribute(attribute || key, Boolean(value));
38
39
(component as unknown as ComponentWithProps)[key] = value;
40
0 commit comments