Fix onEnter in Firefox.