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(emoji-picker): NO-JIRA fix ref reactivity in vue2 #512

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

iropolo
Copy link
Contributor

@iropolo iropolo commented Sep 27, 2024

fix(emoji-picker): no-jira fix ref reactivity in vue2

There were a bug on ref reactivity in vue2 version.

We already did a method to bypass this using setupTabLabelRefs method in the mounted section.

Previously tabLabels computed was working with the refs, and this refs were not updated accordingly.

Now we just leave the refs calculation to the setupTabLabelRefs method since this is being call inside the this.$nextTick and it just use the labels of tabLabels.

To test this improvement, you can go to
packages/dialtone-vue2/components/emoji_picker/emoji_picker.stories.js
and remove the recentlyUsedEmojis from argsData.

You will see now works properly with SMILEYS AND PEOPLE tab label

image

Previously it shows MOST RECENTLY USED tab label

image

Copy link

Please add either the visual-test-ready or no-visual-test label to this PR depending on whether you want to run visual tests or not.
It is recommended to run visual tests if your PR changes any UI. ‼️

Copy link

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-512/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-512/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-512/

@iropolo iropolo changed the title fix(emoji-picker): no-jira fix ref reactivity in vue2 fix(emoji-picker): NO-JIRA fix ref reactivity in vue2 Sep 27, 2024
@iropolo iropolo marked this pull request as ready for review September 27, 2024 15:34
@iropolo iropolo merged commit c4255c1 into staging Sep 27, 2024
12 of 16 checks passed
@iropolo iropolo deleted the fix-message-input-emoji-picker branch September 27, 2024 17:16
juliodialpad pushed a commit that referenced this pull request Sep 27, 2024
## [9.76.3](dialtone/v9.76.2...dialtone/v9.76.3) (2024-09-27)

### Bug Fixes

* **Emoji Picker:** NO-JIRA fix ref reactivity in vue2 ([#512](#512)) ([c4255c1](c4255c1))
* **Input:** DLT-2083 fix clear button margin ([#507](#507)) ([57bd549](57bd549))
* **Rich Text Editor:** DLT-2029 double line breaks on paste ([#511](#511)) ([d7b771a](d7b771a))
juliodialpad pushed a commit that referenced this pull request Sep 27, 2024
## [2.161.2](dialtone-vue2/v2.161.1...dialtone-vue2/v2.161.2) (2024-09-27)

### Bug Fixes

* **Emoji Picker:** NO-JIRA fix ref reactivity in vue2 ([#512](#512)) ([c4255c1](c4255c1))
* **Input:** DLT-2083 fix clear button margin ([#507](#507)) ([57bd549](57bd549))
* **Rich Text Editor:** DLT-2029 double line breaks on paste ([#511](#511)) ([d7b771a](d7b771a))
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.

2 participants