Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(626): add dropbox handler for clicking outside the dropdown #627

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

tplevko
Copy link
Contributor

@tplevko tplevko commented Jan 12, 2024

fixes #626

vokoscreenNG-2024-01-12_10-56-28.mp4

@@ -57,6 +57,7 @@ export const ExpressionEditor: FunctionComponent<ExpressionEditorProps> = ({
isOpen={isOpen}
selected={selectedLanguage.model.name}
onSelect={onSelect}
onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}
Copy link
Member

Choose a reason for hiding this comment

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

I think we can pass the function directly to the property

Suggested change
onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)}
onOpenChange={setIsOpen}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @lordrip for the hint - updated

Copy link
Member

@lordrip lordrip left a comment

Choose a reason for hiding this comment

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

Great, thanks a lot @tplevko

@lordrip lordrip merged commit e405820 into KaotoIO:main Jan 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Close expression editor Dropdown when clicking outside the dropdown
2 participants