Skip to content

SHtml.a(() => JsCmd, NodeSeq, ElemAttr*) triggers unwanted behavior in IE #1150

Closed
andreak opened this Issue Nov 10, 2011 · 2 comments

2 participants

@andreak
Lift Web Framework member
andreak commented Nov 10, 2011

The following code:


".link" #> SHtml.a(() => Alert("hi"), Text("Click me))

Generates code without "return false;" as the last statement in the onclick-handler:


Click me

In my application i have a window.onbeforeunload handler which the above code triggers in IE due to the missing "return false;".

This example-code triggers the issue in IE:






good
bad


After clicking the "bad"-link In IE, the above code will show a second alert showing "Fooka fooka" after showing "onbeforeunload WILL trigger".

@andreak
Lift Web Framework member
andreak commented Nov 10, 2011

(In [[r:6869755aaa30c89eb27077cc92e53af68c5e7b4e]]) Closes #1150

Branch: master

@andreak andreak was assigned Mar 1, 2012
@etorreborre etorreborre pushed a commit to etorreborre/framework that referenced this issue Dec 3, 2014
@andreak andreak Closes #1150 6869755
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.