-
Notifications
You must be signed in to change notification settings - Fork 460
Fix error on close of combo dropdown #7804
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <script> | ||
| import Select from 'primevue/select' | ||
|
|
||
| export default { | ||
| name: 'SelectPlus', | ||
| extends: Select, | ||
| methods: { | ||
| onOverlayLeave() { | ||
| this.unbindOutsideClickListener() | ||
| this.unbindScrollListener() | ||
| this.unbindResizeListener() | ||
|
|
||
| this.$emit('hide') | ||
|
Check warning on line 13 in src/components/primevueOverride/SelectPlus.vue
|
||
| this.overlay = null | ||
| } | ||
| } | ||
| } | ||
| </script> | ||
|
Comment on lines
+1
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider long-term migration away from PrimeVue components. While this override appropriately uses the Options API for PrimeVue compatibility, note that the codebase is moving toward VueUse, shadcn/vue, or Reka UI instead of PrimeVue components. This is acceptable as a short-term fix for existing usage, but consider planning a migration path. Based on learnings, the repository is transitioning away from PrimeVue components.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai Where else in the codebase do we use the Options API for Vue components?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: Length of output: 440 @DrJKL The Options API is used in only 2 places in the codebase, both in the
Both files use the Options API specifically because they extend PrimeVue components, which is consistent with the repository's guideline that states: "Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)." The rest of the codebase uses the Composition API (typically 🧠 Learnings used |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.