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: check activateClickOutside on outside click #1082

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

uherman
Copy link
Contributor

@uherman uherman commented Sep 20, 2023

Closes #1080

📑 Description

This PR introduces a check in the Drawer component which allows changing the value of activateClickOutside after the component is mounted.
This is done by adding activateClickOutside as a condition inside the function called by clickOutsideWrapper.

Status

  • Completed

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • I have checked the page with https://validator.unl.edu/
  • All the tests have passed
  • My pull request is based on the latest commit (not the npm version).

ℹ Additional Information

This fix assumes that the behaviour is not intentional.

handleClickOutside checks the state of activateClickOutside when called.
This allows setting activateClickOutside when the component is mounted.
@stackblitz
Copy link

stackblitz bot commented Sep 20, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Sep 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-svelte ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2023 8:42pm
flowbite-svelte-update ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2023 8:42pm

@shinokada shinokada merged commit ee10e29 into themesberg:main Sep 22, 2023
4 checks passed
shinokada pushed a commit that referenced this pull request Sep 22, 2023
handleClickOutside checks the state of activateClickOutside when called.
This allows setting activateClickOutside when the component is mounted.
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.

Component Drawer : the props activateClickOutside is not updatable
2 participants