Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra committed Nov 25, 2024
1 parent e02ada1 commit 32b4f84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ const MultiSelect = (props: Props) => {
const [openerElement, setOpenerElement] = React.useState<HTMLElement>();

React.useEffect(() => {
/**
* Used to sync the `opened` state when this component acts as a controlled
* component
*/
// Used to sync the `opened` state when this component acts as a controlled component
if (disabled) {
// open should always be false if select is disabled
setOpen(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@ const SingleSelect = (props: Props) => {
const [openerElement, setOpenerElement] = React.useState<HTMLElement>();

React.useEffect(() => {
/**
* Used to sync the `opened` state when this component acts as a controlled
* component
*/
// Used to sync the `opened` state when this component acts as a controlled
if (disabled) {
// open should always be false if select is disabled
setOpen(false);
Expand Down

0 comments on commit 32b4f84

Please sign in to comment.