Skip to content

[UIK-5011][checkbox] rewrite component to ts#2821

Open
slizhevskyv-semrush wants to merge 2 commits intorelease/v17from
UIK-5011/rewrite-component-to-ts
Open

[UIK-5011][checkbox] rewrite component to ts#2821
slizhevskyv-semrush wants to merge 2 commits intorelease/v17from
UIK-5011/rewrite-component-to-ts

Conversation

@slizhevskyv-semrush
Copy link
Copy Markdown
Contributor

Changelog

@semcore/checkbox

Fixed

  • Rewrite component to TS.

Motivation and Context

Nothing changed in how component works. Just rewrite to TS.

How has this been tested?

Manually

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Nice improve.

Checklist:

  • I have updated the documentation accordingly.
  • I have added new tests on added of fixed functionality.

return {
includeInputProps: [
...inputProps,
...(props.includeInputProps ?? []),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why did you remove this?

theme: resolveColor(theme),
size,
state,
// keyboardFocused,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's remove this

if (checkboxRef.current) {
if (indeterminate === undefined) return;

checkboxRef.current.indeterminate = indeterminate;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think, it's better to set Boolean(indeterminate) here...

if (props.rootDisabled !== props.disabled) {
if (props.disabled === undefined) return;

props.hoistDisabled(props.disabled);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And Boolean(disabled) here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants