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

Fix / demo config reset #609

Merged

Conversation

royschut
Copy link
Collaborator

@royschut royschut commented Sep 11, 2024

Description

This PR fixes the "Unselect this config" button in demo mode, which was not responding. This happened because useTrackConfigKeyChange keeps undoing the change. Hard-setting the window.location.href fixes it, much like we do in all other config switch navigations. I have also removed some code that became obsolete.

Screenshot 2024-09-11 at 11 07 22

Steps completed:

According to our definition of done, I have completed the following steps:

  • Acceptance criteria met
  • Unit tests added
  • Docs updated (including config and env variables)
  • Translations added
  • UX tested
  • Browsers / platforms tested
  • Rebased & ready to merge without conflicts
  • Reviewed own code

Copy link
Collaborator

@langemike langemike left a comment

Choose a reason for hiding this comment

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

Pragmatic approach! LGTM!

One minor comment about the target-attribute

refactor(project): remove unnecessary form target

refactor(project): update snapshot
@AntonLantukh AntonLantukh merged commit 003e3e5 into jwplayer:develop Sep 27, 2024
9 checks passed
@royschut royschut deleted the fix/demo-config-source-reset branch September 27, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants