github heroui-inc/heroui @nextui-org/react@2.6.8

latest releases: @heroui/react@2.6.13, @heroui/input@2.4.9, @heroui/autocomplete@2.3.10...
one month ago

🚀 What's Changed

🐛 Bug Fixes

  • Interactive Elements: Fixed issues with onClick events on interactive elements like buttons, cards, and links. The onClick event has been deprecated and replaced with onPress for better accessibility and compatibility. #4322 by @jrgarciadev

🛠️ Maintenance

  • CI: Updated the release process to exit if the build fails, ensuring no incomplete releases are published. #4319 by @winchesHe
  • Changesets: Updated versioning packages to streamline the release process. #4323 by @github-actions

🔄 Migration Steps

To ensure compatibility with this update, follow these steps:

  1. Replace all onClick handlers in your code with onPress.
    Example:
   <Button onPress={() => console.log('Button pressed')}>Click Me</Button>
  1. Check all custom components using onClick and refactor them to use onPress if they rely on NextUI components internally.
  2. Test interactive elements like buttons, cards, and links across devices, particularly on iOS and Android, to ensure functionality.

Don't miss a new heroui release

NewReleases is sending notifications on new releases.