mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Replace native Array.includes with jQuery version
This was failing with a 'Object doesn't have method' error on IE11. Assume Babel wasn't polyfilling Array.includes so reverting to jQuery version for now.
This commit is contained in:
@@ -147,7 +147,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
// use dialog mode for states which contain more than one form control
|
// use dialog mode for states which contain more than one form control
|
||||||
if (['move-to-existing-folder', 'add-new-template'].includes(this.currentState)) {
|
if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template'])) {
|
||||||
mode = 'dialog';
|
mode = 'dialog';
|
||||||
}
|
}
|
||||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user