Skip to content

Conversation

hobbitronics
Copy link
Contributor

@hobbitronics hobbitronics commented May 5, 2025

ETH-1160 fix consistency of Checkbox api with html checkbox

Added

  • Added name and value props which may be needed for forms when submitting fields by name

Changed

  • exposed change event

Security

  • ran npm audit fix

Feature branch checklist

  • Documentation (README, etc.)
  • Run make format, make dry and make install

@hobbitronics hobbitronics requested a review from a team as a code owner May 5, 2025 01:04
@hobbitronics hobbitronics requested review from briskt, forevermatt, mtompset and jason-jackson and removed request for a team May 5, 2025 01:04
Copy link

sonarqubecloud bot commented May 5, 2025

})
const handleChange = () => dispatch(checkbox.checked ? 'checked' : 'unchecked')
$: if (checkbox && checkbox.checked !== checked) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be checkbox?.checked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually I don't think that's equivalent because if checkbox is undefined then the block won't run, but if checked is undefined it will as long as checked isn't undefined.

@hobbitronics hobbitronics merged commit 118391c into develop May 5, 2025
1 check passed
@hobbitronics hobbitronics deleted the feature/mirror-checkbox-api branch May 5, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants