Merge pull request #2723 from alphagov/fix-polyfill-issue

Replace native Array.includes with jQuery version
This commit is contained in:
Tom Byers
2019-02-04 11:32:39 +00:00
committed by GitHub

View File

@@ -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);