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

[Dropdown] Missing event property in focus event raises JS error in firefox #534

Merged
merged 2 commits into from
Mar 3, 2019

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Mar 2, 2019

Description

Because the global event object is not available in firefox but is supplied as property to the event method and the focus event was missing this property, firefox raises a JS error at the console.
This has now been catched by correctly adding the event property to the focus event function.

Testcase

  • Use Firefox
  • Open the modal by clicking the button
  • Watch the console

Broken

https://jsfiddle.net/dutrieux/7gwko0L6/14/

Fixed

https://jsfiddle.net/zhgwbLjd/

Screenshot

dialog

Closes

#533

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews labels Mar 2, 2019
@lubber-de lubber-de added this to the 2.7.3 milestone Mar 2, 2019
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lubber-de lubber-de added the browser/firefox Any issues relating to Mozilla Firefox label Mar 2, 2019
Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y0hami y0hami merged commit 88629ca into fomantic:develop Mar 3, 2019
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Mar 3, 2019
@y0hami y0hami mentioned this pull request Apr 1, 2019
@lubber-de lubber-de deleted the fix/533/firefox_event_missing branch April 2, 2019 09:04
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

Successfully merging this pull request may close these issues.

3 participants