🚀 What's Changed
🐛 Bug Fixes
- Interactive Elements: Fixed issues with
onClick
events on interactive elements like buttons, cards, and links. TheonClick
event has been deprecated and replaced withonPress
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:
- Replace all
onClick
handlers in your code withonPress
.
Example:
<Button onPress={() => console.log('Button pressed')}>Click Me</Button>
- Check all custom components using onClick and refactor them to use onPress if they rely on NextUI components internally.
- Test interactive elements like buttons, cards, and links across devices, particularly on iOS and Android, to ensure functionality.