fix(editor): NO-JIRA fixed shadow dom issues with editor#1107
fix(editor): NO-JIRA fixed shadow dom issues with editor#1107Maysam Kangarani Farahani (maysamkf) merged 4 commits intostagingfrom
Conversation
|
Please add either the |
|
|
||
| colorPickerInput() { | ||
| return document.querySelector('.colorPickerInput'); | ||
| return this.$el.getRootNode().querySelector('.colorPickerInput'); |
There was a problem hiding this comment.
In vue 3, try to avoid using this.$el. The reason for this is that vue 3 supports multiple root elements so what $el returns is somewhat unpredictable. It probably works fine in the current case, but if the template changes in the future it might not be. It's best practice to instead use a ref directly on an element
There was a problem hiding this comment.
Thanks, fixed now!
Brad Paugh (braddialpad)
left a comment
There was a problem hiding this comment.
Thanks!
|
✔️ Deploy previews ready! |
82f8c72
into
staging
# [3.213.0](dialtone-vue/v3.212.0...dialtone-vue/v3.213.0) (2026-03-09) ### Bug Fixes * **Editor:** NO-JIRA fixed shadow dom issues with editor ([#1107](#1107)) ([82f8c72](82f8c72)) ### Features * **Button:** DLT-3086 update loading state to use dt-loader component ([#1111](#1111)) ([621c49a](621c49a))
fixed shadow dom issues with editor
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
📖 Description
v-dt-tooltipin editordocument.querySelectorwiththis.$el.getRootNode().querySelectorto work with shadow dom📝 Checklist
For all PRs:
For all Vue changes:
📷 Screenshots / GIFs
🔗 Sources
PR for tooltip shadow dom fix