Skip to content

Changing the URL of a sticker picker doesn't work when the sticker picker isn't active #7547

@turt2live

Description

@turt2live

A page refresh is required to have the widget update.

Dimension used to try to delete the Scalar sticker picker and then add its own widget, however the Scalar widget didn't appear to actually disappear when doing this. The approach was then changed to try and re-use the same widget ID and just swap out the URL on the fly, but that also didn't work.

This can be easily reproduced as follows:

  1. Acquire a sticker picker widget
  2. Open the widget to verify that it actually exists
  3. Close the widget
  4. Open devtools and change the URL for the m.widgets stickerpicker
  5. Send the event
  6. Wait a few seconds (for the sync) and open the sticker picker
  7. Note the page has not changed

If you avoid step 3 and open devtools you'll notice two things:

  • The sticker picker stays open on top (although probably a bug, this is a neat "feature")
  • Changing the URL changes the sticker picker right away

Metadata

Metadata

Assignees

Labels

A-ScalarP2S-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions