Skip to content

Commit

Permalink
rmeove in checks in mergeprops
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jul 27, 2024
1 parent 51ef5cf commit 6873cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bits-ui/src/lib/internal/mergeProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@ export function mergeProps<T extends PropsArg[]>(
}

// convert style object to string
if ("style" in result && typeof result.style === "object") {
if (typeof result.style === "object") {
result.style = styleToString(result.style as StyleProperties).replaceAll("\n", " ");
}

// handle weird svelte bug where `hidden` is not removed when set to `false`
if ("hidden" in result && result.hidden !== true) {
if (result.hidden !== true) {
result.hidden = undefined;
}

// handle weird svelte bug where `disabled` is not removed when set to `false`
if ("disabled" in result && result.disabled !== true) {
if (result.disabled !== true) {
result.disabled = undefined;
}

Expand Down

0 comments on commit 6873cfc

Please sign in to comment.