Closed nuthinking closed 5 years ago
Looks like getElement
function in the dom
module could be a bit more sophisticated. Would you accept such PR?
I think this will add more surface to bugs than help, in most cases.
Maybe it's better to conditionally render only what you need for the current screen size to avoid extra DOM computation anyway.
I have 2 targets for the same step which are visible interchangeably depending on the page size (media query). I would expect that by default the first visible instance of the target query would be picked up.
The beacon appears close to the only visible instance of
.my-button
The beacon still tries to find the first instance in the dom of
.my-button
and because this can't be located visually the beacon appears on the top-left corner.16.2
2.0.0-15
Chrome 70 / Mac