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

Addon-interactions: Fix IE support by replacing array includes #18993

Merged
merged 1 commit into from Aug 23, 2022

Conversation

JonathanKolnik
Copy link
Contributor

Refactored a piece of logic introduced in #18706 so that it is compatible to run in Internet Explorer.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

@JonathanKolnik we can probably still use optional chaining because that will get transpiled by babel. The includes => indexOf change should be sufficient, right?

@dartess
Copy link
Contributor

dartess commented Aug 23, 2022

I'm confused - storybook@7 will continue to support IE11, or is this a request for the current version?

@shilman
Copy link
Member

shilman commented Aug 23, 2022

@dartess this got patched back to 6.5, so it's supposed to fix that. but actually @JonathanKolnik since this change is only for 6.5 this is kind of a special case and can you please target main-prerelease instead?

7.0 will drop IE support

@JonathanKolnik JonathanKolnik force-pushed the jonathankolnik/patch-ie-interactions-bug branch from b293031 to 87a5534 Compare August 23, 2022 15:19
@JonathanKolnik JonathanKolnik changed the base branch from next to main-prerelease August 23, 2022 15:19
@JonathanKolnik
Copy link
Contributor Author

Updated @shilman - sorry for the confusion!

@shilman shilman changed the title fix interactions bug because .includes isn't supported in IE Addon-interactions: Fix IE support by replacing .includes Aug 23, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM!!

@shilman shilman changed the title Addon-interactions: Fix IE support by replacing .includes Addon-interactions: Fix IE support by replacing array includes Aug 23, 2022
@shilman shilman merged commit 962e9a7 into main-prerelease Aug 23, 2022
@shilman shilman deleted the jonathankolnik/patch-ie-interactions-bug branch August 23, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants