Skip to content

Commit a01f677

Browse files
committed
fix: automatic position correction (#145)
1 parent 315242b commit a01f677

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/FloatingToolbar/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ function FloatingToolbar(props) {
8787
props.container.className = 'chatgptbox-toolbar-container-not-queryable'
8888
setCloseable(true)
8989
}}
90+
onUpdate={() => {
91+
updatePosition()
92+
}}
9093
/>
9194
</div>
9295
</div>

0 commit comments

Comments
 (0)