Skip to content

Commit 7a2bb17

Browse files
committed
fix html_writer import + missing readonly attribute
1 parent 501e041 commit 7a2bb17

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

renderer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25-
use core\output\html_writer;
26-
2725
/**
2826
* Base class for generating the bits of output for formulas questions.
2927
*
@@ -417,7 +415,7 @@ protected function create_input_box(qtype_formulas_part $part, $answerindex,
417415
];
418416

419417
if ($displayoptions->readonly) {
420-
$inputattributes['disabled'] = 'disabled';
418+
$inputattributes['readonly'] = 'readonly';
421419
}
422420

423421
// For accessibility, a label has to be added. The string is depends on the number of parts (single or multi part),

0 commit comments

Comments
 (0)