Skip to content

Commit c95a54d

Browse files
committed
Expose refresh functionality
1 parent fc53067 commit c95a54d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ export default class Driver {
155155
return;
156156
}
157157

158+
this.refresh();
159+
}
160+
161+
/**
162+
* Refreshes and repositions the popover and the overlay
163+
*/
164+
refresh() {
158165
this.overlay.refresh();
159166
}
160167

types/index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ declare module 'driver.js' {
6969
*/
7070
private onResize(): void;
7171

72+
/**
73+
* Refreshes and repositions the popover and the overlay
74+
*/
75+
private refresh(): void;
76+
7277
/**
7378
* Makes it operable with keyboard
7479
* @param {Event} e

0 commit comments

Comments
 (0)