on master help sign in
Fix issue in which links did not detect hovers
commit8be2d9a906a60ebafa60c872ba3b0129505f7111 authorEvan Czaplicki <info@elm-lang.org> dateSat 5 Apr 2014, 16:38 (13 years ago) parentd716993
1 file changed+2
runtime/Render/Element.js+2
runtime/Render/Element.js+2
@@ -31,6 +31,7 @@ function setProps(elem, e) {
3131 a.style.display = 'block';
3232 a.style.position = 'absolute';
3333 e.style.position = 'relative';
34+ a.style.pointerEvents = 'auto';
3435 e.appendChild(a);
3536 }
3637 if (props.hover.ctor !== '_Tuple0') {
@@ -378,6 +379,7 @@ function updateProps(node, curr, next) {
378379 a.style.display = 'block';
379380 a.style.position = 'absolute';
380381 e.style.position = 'relative';
382+ a.style.pointerEvents = 'auto';
381383 e.appendChild(a);
382384 } else {
383385 node.lastNode.href = props.href;