Skip to content

Fix $isLabel issue#1803

Merged
mattelen merged 2 commits intoshentao:masterfrom
nachodd:patch-1
Feb 25, 2026
Merged

Fix $isLabel issue#1803
mattelen merged 2 commits intoshentao:masterfrom
nachodd:patch-1

Conversation

@nachodd
Copy link
Copy Markdown
Contributor

@nachodd nachodd commented Nov 13, 2024

When this.filteredOptions[this.pointer] is null, it's breaking on pointerAdjust

When `this.filteredOptions[this.pointer]` is null, it's breaking on `pointerAdjust`
Copy link
Copy Markdown
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

Prevents a runtime error when the currently pointed option is null/undefined by guarding access to $isLabel during pointer adjustment.

Changes:

  • Add a defensive check for this.filteredOptions[this.pointer] before reading $isLabel.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mattelen mattelen merged commit 140590d into shentao:master Feb 25, 2026
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.

3 participants