Skip to content

refactor(autocomplete, input, input-number, input-text): improve types#11121

Merged
jcfranco merged 10 commits intodevfrom
jcfranco/narrow-autocomplete-enterKeyHint-prop
Dec 22, 2024
Merged

refactor(autocomplete, input, input-number, input-text): improve types#11121
jcfranco merged 10 commits intodevfrom
jcfranco/narrow-autocomplete-enterKeyHint-prop

Conversation

@jcfranco
Copy link
Copy Markdown
Member

@jcfranco jcfranco commented Dec 20, 2024

Related Issue: N/A

Summary

This improves existing types to make way for Lumina type enhancements.

Note: this also removes some workarounds related to previous global attribute handling.

@github-actions github-actions Bot added the enhancement Issues tied to a new feature or request. label Dec 20, 2024
@jcfranco jcfranco changed the title feat(autocomplete, input, input-number, input-text): improve types refactor(autocomplete, input, input-number, input-text): improve types Dec 20, 2024
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Dec 20, 2024
@jcfranco jcfranco requested a review from driskull December 20, 2024 08:38
[CSS.inlineChild]: !!this.inlineEditableEl,
}}
defaultValue={this.defaultValue}
disabled={this.disabled ? true : null}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does this still need to have ? true : null? is that expected or is it a bug I should fix?

Suggested change
disabled={this.disabled ? true : null}
disabled={this.disabled}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll test for that separately to keep this PR focused.

Copy link
Copy Markdown
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

👍

@github-actions github-actions Bot added the refactor Issues tied to code that needs to be significantly reworked. label Dec 21, 2024
Comment thread packages/calcite-components/src/components/input/common/tests.ts Outdated
Comment thread packages/calcite-components/src/components/input/common/tests.ts Outdated
jcfranco and others added 5 commits December 21, 2024 11:22
Co-authored-by: Max Patiiuk <max@patii.uk>
Co-authored-by: Max Patiiuk <max@patii.uk>
@jcfranco jcfranco merged commit bed10d4 into dev Dec 22, 2024
@jcfranco jcfranco deleted the jcfranco/narrow-autocomplete-enterKeyHint-prop branch December 22, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issues tied to a new feature or request. refactor Issues tied to code that needs to be significantly reworked. skip visual snapshots Pull requests that do not need visual regression testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants