Closed NethmiRodrigo closed 3 weeks ago
Size Change: +7.97 kB (+0.23%)
Total Size: 3.45 MB
Filename | Size | Change | |
---|---|---|---|
dist/237.js |
0 B | -35.3 kB (removed) | đ |
dist/831.js |
28.4 kB | +28.4 kB (new file) | đ |
I've not investigated what's happening behind the scenes, but adding questions to sections isn't working as expected. I added a question and it got added to the wrong section.
I've not investigated what's happening behind the scenes, but adding questions to sections isn't working as expected. I added a question and it got added to the wrong section.
@denniskigen Thank you for catching it! Turns out it was happening because the state updates took longer and showModal was called before that. Changed the interactive-builder
to pass in the values directly to the relevant functions instead of setting states, as it was done similarly in other functions in the same file.
Requirements
Summary
This PR changes the way modals are launched in the interactive builder to use showModal instead. The relevant modals were registered in
routes.json
and called inside useCallbacks.Screenshots
https://github.com/openmrs/openmrs-esm-form-builder/assets/34070216/dd749894-d572-450c-af87-ac15a10c578f
Related Issue
Other