Skip to content

Commit

Permalink
fix(material): wrap the or condition
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Nov 15, 2022
1 parent 8e895d7 commit 687898a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-stingrays-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@suid/material": patch
---

Fix the `Modal` component in SolidJS v1.6
4 changes: 2 additions & 2 deletions packages/material/src/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ const Modal = $.defineComponent(function Modal(inProps) {
return mergeProps(
() => baseProps.componentsProps.root || {},
() =>
!baseProps.components.Root ||
(!isHostComponent(baseProps.components.Root) && {
((!baseProps.components.Root ||
!isHostComponent(baseProps.components.Root)) && {
get ownerState() {
return (
(baseProps.componentsProps.root as any)?.ownerState || {}
Expand Down

0 comments on commit 687898a

Please sign in to comment.