You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added tests that prove my fix is effective or that my feature works (if applicable)
I have added necessary documentation (if applicable)
Any dependent changes have been merged and published in downstream modules
Further comments
Summary by CodeRabbit
New Features
Added an interactive modal example allowing users to add input fields dynamically with per-field value tracking.
Refactor
Simplified modal component behavior to improve stability and preserve input focus while typing, reducing unexpected remounts when modal content changes.
Refactors the modal wrapper from a curried factory to a single-component export, updates the modal view to use the refactor with a computed modalKey for controlled remounting, and adds a story demonstrating dynamic input fields with add-field functionality and per-field state.
Renamed and converted modalBlockWithContext (curried) → ModalBlockWithContext (single-component props). Provider now receives props directly (value={props}) and inner ModalBlock receives ...props. ModalBlockView imports the new export and introduces a computed modalKey to drive remounts; changeState now calls this.setState({}) after mutating this.values.
New Interactive Story app/containers/UIKit/UiKitModal.stories.tsx
Adds ModalInputWithAddField story: initial input blocks, changeState to track per-field values, addField to append inputs with generated actionIds/labels, and a computed modalKey used when rendering the modal; exposes an "Add field" button to add inputs at runtime.
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
🐰 A hop, a prop, a single pass,
The modal sheds its curried past.
Fields sprout up with joyous cheer,
Keys keep focus, state is near.
I nibble bugs and dance on screen—hooray! 🥕
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection
✅ Passed
✅ No merge conflicts detected when merging into develop
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
✅ Passed
The title 'fix: Text input fields on ModalBlockView fail to accept user input' accurately summarizes the main objective of the PR—addressing an input acceptance issue in ModalBlockView through refactoring and state management improvements.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
OtavioStasiak
changed the title
fix: input saving the text typed and breaking the app on add a new op…
fix: Text input fields on ModalBlockView fail to accept user input.
Feb 13, 2026
diegolmello
changed the title
fix: Text input fields on ModalBlockView fail to accept user input.
fix: Text input fields on ModalBlockView fail to accept user input
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Text input fields on ModalBlockView fail to accept user input.
Issue(s)
https://rocketchat.atlassian.net/browse/SUP-993
How to test or reproduce
/polland click on send;Screenshots
Types of changes
Checklist
Further comments
Summary by CodeRabbit
New Features
Refactor