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

F1828_Fixed-issue-when-dropdown-item-click-wasnt-triggered_Dmytro_Holdobin #37

Conversation

Explicit12
Copy link
Collaborator

  • Added onClickOutside directive
  • Fixed issue with dropdown item click not being triggered

https://ilevel.atlassian.net/jira/software/c/projects/FN/boards/2?selectedIssue=FN-1828

@Explicit12 Explicit12 requested a review from itsJohnnyGrid May 27, 2024 21:25
@Explicit12 Explicit12 self-assigned this May 27, 2024
@@ -1,5 +1,5 @@
<template>
<div v-bind="wrapperAttrs">
<div v-on-click-outside="hideOptions" v-bind="wrapperAttrs">
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe v-click-outside is better?

/**
* Selected value.
*/
modelValue: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why modelValue have been removed?

window.removeEventListener("pointerdown", onPointerdown, { passive: true });
}

return removeEvents;
Copy link
Contributor

Choose a reason for hiding this comment

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

It's interesting to discuss how it works in depth

- Fixed issue with dropdown item click not being triggered
@Explicit12 Explicit12 force-pushed the F1828_Fixed-issue-when-dropdown-item-click-wasnt-triggered_Dmytro_Holdobin branch from c7ef452 to d6604a8 Compare May 28, 2024 07:08
@Explicit12 Explicit12 merged commit bbaf0b8 into main May 28, 2024
1 check passed
@Explicit12 Explicit12 deleted the F1828_Fixed-issue-when-dropdown-item-click-wasnt-triggered_Dmytro_Holdobin branch May 28, 2024 07:59
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.

2 participants