Fomantic-ui: [Firefox] preventDefaultOnInputTarget

Created on 7 Mar 2019  路  8Comments  路  Source: fomantic/Fomantic-UI

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.

browsefirefox lanjavascript typbug

Most helpful comment

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 馃檪

All 8 comments

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

Already fixed by #534

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

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 馃檪

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

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

@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.

Was this page helpful?
0 / 5 - 0 ratings