-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.9, 4.1.4, 4.2, 4.3
When using a dynamic form that uses repeat_element() function in moodleforms and requires an AMD module to be loaded, the module is only loaded, when the form is initially loaded. When one clicks on a noSubmitButton (e.g. for adding new repeated elements), the AMD module is not loaded.
Steps to reproduce:
- Install block_floatingbutton on Moodle 4.2 (https://github.com/mebis-lp/moodle-block_floatingbutton, branch MOODLE_402_STABLE)
- Add a block instance in a course.
- Go to the edit page of the block (opens in a new modal).
- Confirm you see a circle right of the "Icon" label.
- Click "Add more icons".
- Confirm you see a text input field right of the "Icon" labels (expected behavior would be to see the circle again).