Skip to content

Conversation

@m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Aug 22, 2025

No description provided.

@netlify
Copy link

netlify bot commented Aug 22, 2025

👷 Deploy request for vuestic-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c1c3ec9

@m0ksem m0ksem requested a review from Copilot August 22, 2025 10:48
@netlify
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for vuestic-storybook ready!

Name Link
🔨 Latest commit c1c3ec9
🔍 Latest deploy log https://app.netlify.com/projects/vuestic-storybook/deploys/68a84ae6a36f8800080438e6
😎 Deploy Preview https://deploy-preview-4579--vuestic-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for a "typing" trigger to the dropdown component and improves autocomplete functionality by disabling text highlighting when showing all options and allowing the dropdown to open without requiring focus on the input.

  • Adds a new "typing" trigger option to dropdown components
  • Disables text highlighting in select options when doShowAllOptions is true
  • Removes event propagation stopping in autocomplete to allow modal opening without focus

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
VaSelect.vue Adds 'typing' trigger and conditional focus logic for dropdown opening
VaSelectContent.vue Removes stopPropagation call to allow click events to bubble
VaSelectOptionList.vue Passes hideHighlighting prop to disable text highlighting
VaSelectOption.vue Adds hideHighlighting prop and logic to disable text highlighting
useDropdownNavigation.ts Adds 'typing' trigger type and conditional typing check
VaDropdown.vue Minor code style improvement for disabled class computation
VaSelect.stories.ts Adds new story for autocomplete search functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

scrollToSelected()
focusSearchOrOptions()
if (document.activeElement?.tagName !== 'INPUT') {
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

[nitpick] Using direct DOM access with document.activeElement makes the code harder to test and maintain. Consider using a ref or passing the active element as a parameter to make this logic more testable.

Copilot uses AI. Check for mistakes.
scrollToSelected()
focusSearchOrOptions()
if (document.activeElement?.tagName !== 'INPUT') {
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

[nitpick] The hardcoded 'INPUT' string should be extracted as a constant to improve maintainability and reduce the risk of typos.

Suggested change
if (document.activeElement?.tagName !== 'INPUT') {
if (document.activeElement?.tagName !== INPUT_TAG_NAME) {

Copilot uses AI. Check for mistakes.
@m0ksem m0ksem merged commit 16833ac into epicmaxco:develop Aug 22, 2025
6 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.

1 participant