Open IhorHordiichuk opened 4 years ago
I was slightly surprised to see this as well. The cause seems to be in relay.css:358
.fx-relay-email-input-wrapper {
position: relative;
pointer-events: none;
padding: 0 !important;
width: 100%;
z-index: 99999999999999999;
box-sizing: border-box;
}
I think that inserting a wrapper element on its own is bound to cause problems, especially with the z-index
set here and also the width: 100%
.
Instead, perhaps it would be best to replace the <input>
with something along the lines of <input is="fx-relay-input
>`, though I'm not sure of all the details of custom elements extending inputs. I just think an approach where the input is replaced by something that makes minimal alteration to the form is the best approach for compatibility.
Take, for example, a form where the <label>
is adjacent to the <input>
which, although ill-advised is still pretty common.
E-mail field appears on the top of any page elements
How to reproduce:
The first way
The second way
This error appears to be caused by 999999999 ... z-index value of .relay-email-input-wrapper