@momentum-design/components 0.39.0 → 0.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -332,7 +332,7 @@ class Popover extends FocusTrapMixin(Component) {
|
|
332
332
|
setupTriggerListener() {
|
333
333
|
if (!this.triggerID)
|
334
334
|
return;
|
335
|
-
this.triggerElement = this.getRootNode().querySelector(
|
335
|
+
this.triggerElement = this.getRootNode().querySelector(`[id="${this.triggerID}"]`);
|
336
336
|
if (!this.triggerElement)
|
337
337
|
return;
|
338
338
|
if (this.trigger === 'mouseenter') {
|
@@ -387,7 +387,7 @@ class Popover extends FocusTrapMixin(Component) {
|
|
387
387
|
async updated(changedProperties) {
|
388
388
|
super.updated(changedProperties);
|
389
389
|
if (changedProperties.has('visible')) {
|
390
|
-
const oldValue = changedProperties.get('visible');
|
390
|
+
const oldValue = changedProperties.get('visible') || false;
|
391
391
|
await this.isOpenUpdated(oldValue, this.visible);
|
392
392
|
}
|
393
393
|
if (changedProperties.has('placement')) {
|
package/package.json
CHANGED