Skip to content

Commit b433502

Browse files
committed
🐛 Remove popover instance from DOM when calling instance.remove()
1 parent 20134ff commit b433502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/popover.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export const popover = ({
231231

232232
return {
233233
remove() {
234+
popoverDOM.remove()
234235
triggerDOM.removeEventListener('click', handleOpen)
235236
observer.disconnect()
236237

0 commit comments

Comments
 (0)