Skip to content

Remove duplicate AUTOHIDEABLE capability registration in Flydown#87

Open
B-head wants to merge 1 commit intomit-cml:mainfrom
B-head:fix/flydown-duplicate-autohideable
Open

Remove duplicate AUTOHIDEABLE capability registration in Flydown#87
B-head wants to merge 1 commit intomit-cml:mainfrom
B-head:fix/flydown-duplicate-autohideable

Conversation

@B-head
Copy link
Copy Markdown

@B-head B-head commented Mar 21, 2026

Summary

Remove redundant addCapability(AUTOHIDEABLE) call in Flydown.prototype.init. Flyout.prototype.init already registers this capability via addComponent, so the second call is unnecessary and can trigger a warning.

Context

Flyout.prototype.init registers AUTOHIDEABLE (along with DELETE_AREA and DRAG_TARGET) through addComponent, so the explicit addCapability call in Flydown.prototype.init is redundant.

Test plan

  • All existing unit tests pass
  • Manual verification: flydown panels function correctly

Flyout.prototype.init already registers the AUTOHIDEABLE capability via
addComponent, so the subsequent addCapability call in Flydown.prototype.init
was redundant and could trigger a warning.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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