Skip to content

Commit 6ac3513

Browse files
committed
Add default prpl-interactive-task-popover component
1 parent 4234355 commit 6ac3513

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

assets/js/web-components/prpl-interactive-task.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global HTMLElement, prplSuggestedTask */
1+
/* global HTMLElement, prplSuggestedTask, customElements */
22

33
/**
44
* Register the custom web component.
@@ -142,3 +142,17 @@ class PrplInteractiveTask extends HTMLElement {
142142
popover.style.transform = 'translateX(-50%)';
143143
}
144144
}
145+
146+
/**
147+
* Register the custom web component.
148+
*/
149+
customElements.define(
150+
'prpl-interactive-task-popover',
151+
class extends PrplInteractiveTask {
152+
// eslint-disable-next-line no-useless-constructor
153+
constructor() {
154+
// Get parent class properties
155+
super();
156+
}
157+
}
158+
);

0 commit comments

Comments
 (0)