Skip to content

Commit

Permalink
fix: select theme error
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Aug 24, 2022
1 parent 5bacbdc commit dda7d71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chatty-crabs-shop.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/select": patch
---

Fix issue where select theme throws when "field" part is not defined
2 changes: 1 addition & 1 deletion packages/select/src/select.tsx
Expand Up @@ -101,7 +101,7 @@ export const Select = forwardRef<SelectProps, "select">((props, ref) => {
...styles.field,
_focus: {
zIndex: "unset",
...(styles as any).field["_focus"],
...(styles as any).field?.["_focus"],
},
}

Expand Down

1 comment on commit dda7d71

@vercel
Copy link

@vercel vercel bot commented on dda7d71 Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.