Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firefox] preventDefaultOnInputTarget #543

Closed
ricohumme opened this issue Mar 7, 2019 · 8 comments
Closed

[Firefox] preventDefaultOnInputTarget #543

ricohumme opened this issue Mar 7, 2019 · 8 comments
Labels
browser/firefox Any issues relating to Mozilla Firefox lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Milestone

Comments

@ricohumme
Copy link

ricohumme commented Mar 7, 2019

Bug Report

Hi,

I just built Fomantic UI from the develop branch because I was waiting on an important fix.
It has just now come to my intention that Chrome works just fine with but when using Firefox, i somehow get the following error: jQuery.Deferred exception: event is not defined preventDefaultOnInputTarget

I found that the following piece of code was causing this:
Source: semantic.min.js

preventDefaultOnInputTarget: function () {
    event && S(event.target).is(p.input) && (m.verbose('Preventing default check action after manual check action'), event.preventDefault())
}

Now, as you can see, something is being done to event, but it is not defined with the scope.
I looked up further in the code and saw that this happens in checkbox

With release 2.7.2, there were no issues reported, so I'm assuming this is somehow related to the upcoming release.

@prudho
Copy link
Contributor

prudho commented Mar 7, 2019

Related to 00191d2. Let's summon @lubber-de here :)

@lubber-de
Copy link
Member

Already fixed by #534

@dutrieux
Copy link
Contributor

dutrieux commented Mar 7, 2019

Maybe related with this one : #533

@lubber-de
Copy link
Member

Mmh.. Maybe not... I'll check

@lubber-de
Copy link
Member

Fixed by #544
Thank you very much for catching this!
I am very sorry for this and used Browserstack once again to verify it works now... twice 🙂

@lubber-de lubber-de added this to the 2.7.3 milestone Mar 7, 2019
@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript labels Mar 7, 2019
@y0hami y0hami added the browser/firefox Any issues relating to Mozilla Firefox label Mar 7, 2019
@ricohumme
Copy link
Author

No problem :)
Thanks for applying the fix so quickly!

@y0hami y0hami reopened this Mar 8, 2019
@ricohumme
Copy link
Author

@hammy2899 No clue as to why this should remain open as the resolving element resides in another issue (#544)

@y0hami
Copy link
Member

y0hami commented Mar 8, 2019

@ricohumme This issue brings to light something else as shown in @lubber-de's PR. We keep issues open util their relevant PR is merged into master.

@lubber-de lubber-de added the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Mar 8, 2019
@y0hami y0hami closed this as completed in 1d3cde6 Apr 2, 2019
@lubber-de lubber-de removed the tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser/firefox Any issues relating to Mozilla Firefox lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

5 participants