Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Button href & Internet Explorer #481

Open
TekTimmy opened this issue Jan 29, 2014 · 4 comments
Open

Button href & Internet Explorer #481

TekTimmy opened this issue Jan 29, 2014 · 4 comments
Labels

Comments

@TekTimmy
Copy link

When clicking "com.github.gwtbootstrap.client.ui.Button" in Internet Explorer (I tested version 9, 10 and 11) GWT raises an event that makes it call the "mayStop" method in "com.google.gwt.activity.shared.Activity"s.

I have to completly remove the "href" attribute from the Button element to prevent this behavior. By default the button contains href="javascript:;" which should be removed as long as no href value is assigned.

@reinert
Copy link
Contributor

reinert commented Jan 29, 2014

hummmm.....

I really don't know why href="javascript:;" is put by default.

@caarlos0 do you know?

Anyway, as an alternative, if this keeping this heref initial value is really necessary, we can maybe stopPropagation.

@caarlos0
Copy link
Contributor

An anchor without a href don't have the "hand" cursor on hover. I believe that because of that, but I dunno if this is from gwt-bootstrap or gwt itself.

@TekTimmy
Copy link
Author

I must say that to solve this problem i have to remove the whole "ahref" attribute not just setting an empty value.

@BAVhel
Copy link

BAVhel commented Aug 4, 2015

As workaround in extended class from Button
@OverRide
public void setEmptyHref() {
getElement().removeAttribute("href");
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants