Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit eecc541

Browse files
radotzkimmalerba
authored andcommitted
fix(mdGesture): fix form submit via enter/go button on iOS (#3990) (#10189)
1 parent 9f198c9 commit eecc541

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/services/gesture/gesture.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,10 @@ function attachToDocument( $mdGesture, $$MdGestureHandler ) {
552552

553553
function clickHijacker(ev) {
554554
var isKeyClick = ev.clientX === 0 && ev.clientY === 0;
555+
var isSubmitEvent = ev.target && ev.target.type === 'submit';
555556
if (!isKeyClick && !ev.$material && !ev.isIonicTap
556-
&& !isInputEventFromLabelClick(ev)) {
557+
&& !isInputEventFromLabelClick(ev)
558+
&& !isSubmitEvent) {
557559
ev.preventDefault();
558560
ev.stopPropagation();
559561
lastLabelClickPos = null;

0 commit comments

Comments
 (0)