Bug in render confirm action in simple select

Bug in render confirm action in simple select

by Francisco Sousa -
Number of replies: 0

Hello!

(not sure if this is the correct forum discussion but i think i found a bug in the output components)

So, I was trying to add a confirmation to a single_select (output render component), as it submits instantly and I want to display a warning.

Naturally, I used the ->add_confirm_action() function from that component... But it did not work. So, I looked at the code of the function, and the select and the render template AND the action is being stored inside the component BUT it is never rendered (not inside export for template, nor inside .template). I compared with single_button, and the latter has a the correct behaviour....

So, this is bug or feature? And is this the right place to inform? Using Moodle 3.10.0, btw

Average of ratings: -