Skip to content

Fixed the baked state of the onChange function and disabled prop in <CodeMirror /> component (CMEM-7195)#373

Open
fiorsaoirse wants to merge 2 commits intodevelopfrom
feature/badges-config-CMEM-7195
Open

Fixed the baked state of the onChange function and disabled prop in <CodeMirror /> component (CMEM-7195)#373
fiorsaoirse wants to merge 2 commits intodevelopfrom
feature/badges-config-CMEM-7195

Conversation

@fiorsaoirse
Copy link
Contributor

@fiorsaoirse fiorsaoirse commented Feb 27, 2026

The problem: the onChange function and disabled state were baked on the component's mounting, so the function from the closure was used as a callback and the disabled param could be not actual. See the attachment in the ticket for more details.

@fiorsaoirse fiorsaoirse requested a review from haschek February 27, 2026 08:47
@fiorsaoirse fiorsaoirse changed the title Fixed the baked state of the onChange function in <CodeMirror /> component Fixed the baked state of the onChange function in <CodeMirror /> component (CMEM-7195) Feb 27, 2026
@fiorsaoirse fiorsaoirse changed the title Fixed the baked state of the onChange function in <CodeMirror /> component (CMEM-7195) Fixed the baked state of the onChange function and disabled prop in <CodeMirror /> component (CMEM-7195) Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant