mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 13:15:53 +08:00
fix: prompt editor insert cursor position (#5415)
This commit is contained in:
parent
aed56b1a8f
commit
940c2faea1
@ -57,7 +57,7 @@ const ComponentPicker = ({
|
|||||||
const { refs, floatingStyles, elements } = useFloating({
|
const { refs, floatingStyles, elements } = useFloating({
|
||||||
placement: 'bottom-start',
|
placement: 'bottom-start',
|
||||||
middleware: [
|
middleware: [
|
||||||
offset(16), // fix hide cursor
|
offset(0), // fix hide cursor
|
||||||
shift(),
|
shift(),
|
||||||
flip(),
|
flip(),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user