Commit be9f1096 authored by git's avatar git Committed by Neslee
Browse files

Issue #3040284 by ras-ben, plov: Using autosubmit + hide submit does not work in Safari

parent 4073f67c
......@@ -11,6 +11,21 @@
float: left; /* LRT */
}
/*
* Visually hiding the autosubmit button if the setting is set.
* We're doing it this way, instead of the regular .js-hide dispay: none;
* core way for two reasons:
* - This way, the button is still visible for screenreaders
* - There is an issue with Safari, where pressing enter in an textfield that
* has display: none; does not trigger a ajax submit.
*/
.js .js-bef-hide {
position: absolute;
left: -99999px;
height: 0;
width: 0;
overflow: hidden;
}
/* Commenting out CSS additions until they are proven to be needed in D8. */
......
......@@ -698,7 +698,7 @@ Title Desc|Z -> A</pre> Leave the replacement text blank to remove an option alt
}
if (!empty($settings['general']['autosubmit_hide'])) {
$form['actions']['submit']['#attributes']['class'][] = 'js-hide';
$form['actions']['submit']['#attributes']['class'][] = 'js-bef-hide';
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment