mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 19:34:15 -05: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
|
||||
if (['move-to-existing-folder', 'add-new-template'].includes(this.currentState)) {
|
||||
if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template'])) {
|
||||
mode = 'dialog';
|
||||
}
|
||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||
|
||||
Reference in New Issue
Block a user