[Condition Widgets] Keep styles for widgets with a URL (#6515)

* call update style after view is update with current style rule manager styles for components (namely condition widget) that have DOM changes after the element is grabbed to style

* target blank yo

---------

Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
Jamie V 2023-03-28 08:58:15 -07:00 committed by GitHub
parent 2ff7132e90
commit 36cfb1d515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
:is="urlDefined ? 'a' : 'span'"
class="c-condition-widget u-style-receiver js-style-receiver"
:href="url"
:target="url ? '_BLANK' : ''"
>
<div class="c-condition-widget__label">
{{ label }}

View File

@ -286,6 +286,7 @@ export default {
this.openmct.objectViews.on('clearData', this.clearData);
this.$nextTick(() => {
this.updateStyle(this.styleRuleManager?.currentStyle);
this.getActionCollection();
});
},