Skip to content

fix(ui): Action.Group should work correctly for conditional rendering and nesting children#1470

Merged
dengfuping merged 1 commit into
oceanbase:masterfrom
linhf123:fix/action-group
Apr 16, 2026
Merged

fix(ui): Action.Group should work correctly for conditional rendering and nesting children#1470
dengfuping merged 1 commit into
oceanbase:masterfrom
linhf123:fix/action-group

Conversation

@linhf123
Copy link
Copy Markdown
Contributor

@linhf123 linhf123 commented Apr 13, 2026

📦 Modified package

  • @oceanbase/design
  • @oceanbase/ui
  • @oceanbase/icons
  • @oceanbase/charts
  • @oceanbase/util
  • @oceanbase/codemod
  • Other (about what?)

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

Before After
image image

📝 Changelog

Language Changelog
🇺🇸 English -
🇨🇳 Chinese 🐞 修复 Action.Group 条件渲染子元素和嵌套子元素时渲染为空的问题。

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Tests is updated/provided or not needed
  • Changelog is provided or not needed

…tion buttons and links

- Updated children prop type to React.ReactNode for better flexibility.
- Introduced normalization logic for action components and added support for Modal and Drawer elements.
- Implemented conditional rendering of action buttons and links based on a state toggle in the demo.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 13, 2026

@linhf123 is attempting to deploy a commit to the dengfuping's projects Team on Vercel.

A member of the Team first needs to authorize it.

@dengfuping dengfuping changed the title feat: Enhance Action.Group for conditional rendering of actions & fix indirect nesting children fix(ui): Action.Group should work correctly for conditional rendering and nesting children Apr 16, 2026
@dengfuping dengfuping merged commit c52b22f into oceanbase:master Apr 16, 2026
5 of 7 checks passed
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