Skip to content

bug: app crashes when opening ModalSectionSelects #6951

@divyanshu-patil

Description

@divyanshu-patil

Describe the Bug

Opening the “Modal – Section and Selects” ModalSectionSelects story causes the app to crash, while other modal stories work correctly.

The crash occurs when a modal contains a section block with fields. This block structure leads to a runtime failure during layout/rendering instead of rendering the modal or failing gracefully.

Steps to Reproduce

  1. run storybook
  2. go to UIKitModal > ModalSectionSelects
  3. Open or render the modal.
  4. Observe that the application crashes immediately.

Expected Behavior

The modal should render correctly

Actual Behavior

The app crashes immediately when the story is opened.

Rocket.Chat Server Version

latest

Rocket.Chat App Version

4.69.0

Device Name

iPhone 17 Pro simulator

OS Version

iOS 26

Additional Context

Screenshots

app.crash.on.ModalSectionSelects.mp4

The Root Cause
The Section component was wrapping parsed markdown content inside a component:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions