Skip to content

Commit 7eb3676

Browse files
authored
Merge pull request #4476 from crazyserver/MOBILE-4653
Mobile 4653
2 parents 87940ce + a5390f7 commit 7eb3676

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/addons/qtype/numerical/services/handlers/numerical.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ export class AddonQtypeNumericalHandlerService implements CoreQuestionHandler {
238238
if (question.parsedSettings.unitdisplay === AddonQtypeNumericalHandlerService.UNITINPUT &&
239239
question.parsedSettings.unitgradingtype === AddonQtypeNumericalHandlerService.UNITGRADED &&
240240
!this.isValidValue(unit)) {
241-
return Translate.instant('addon.qtype_numerical.invalidnumber');
241+
// It would be great to return an error if the unit is required and not supplied.
242+
// But in LMS this is not implemented.
243+
return;
242244
}
243245

244246
return;

src/theme/components/collapsible-header.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ body:not(.core-iframe-fullscreen):not(.core-reading-mode-enabled) .collapsible-h
121121

122122
body.core-reading-mode-enabled .collapsible-header-page {
123123
.collapsible-header-original-title {
124-
pointer-events: none;
125-
user-select: none;
126-
visibility: hidden;
124+
display: none;
127125
}
128126
}

0 commit comments

Comments
 (0)