Skip to content

fix: resolve HTMLSpanElement undefined error in Pill component#4194

Merged
spencrmartin merged 1 commit intospence/ui-musefrom
chore/lint4
Aug 19, 2025
Merged

fix: resolve HTMLSpanElement undefined error in Pill component#4194
spencrmartin merged 1 commit intospence/ui-musefrom
chore/lint4

Conversation

@spencrmartin
Copy link
Collaborator

  • Replace React.HTMLAttributes with React.ComponentPropsWithoutRef<'span'>
  • This avoids the HTMLSpanElement global type dependency while maintaining the same functionality
  • React.ComponentPropsWithoutRef<'span'> provides the same span element props without requiring DOM globals

Fixes the no-undef lint error for HTMLSpanElement.

- Replace React.HTMLAttributes<HTMLSpanElement> with React.ComponentPropsWithoutRef<'span'>
- This avoids the HTMLSpanElement global type dependency while maintaining the same functionality
- React.ComponentPropsWithoutRef<'span'> provides the same span element props without requiring DOM globals

Fixes the no-undef lint error for HTMLSpanElement.
@spencrmartin spencrmartin marked this pull request as ready for review August 19, 2025 17:32
@spencrmartin spencrmartin merged commit 434b948 into spence/ui-muse Aug 19, 2025
4 checks passed
@spencrmartin spencrmartin deleted the chore/lint4 branch August 19, 2025 17:32
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