mirror of
https://github.com/langgenius/dify.git
synced 2026-06-10 18:24:09 +08:00
fix(web): z-index issue of variable picker in prompt editor (#37163)
This commit is contained in:
parent
f15a8f02ef
commit
d46a4c05b1
@ -704,6 +704,7 @@ describe('ComponentPicker (component-picker-block/index.tsx)', () => {
|
||||
await setEditorText(editor, '{', true)
|
||||
const typeaheadMenu = document.getElementById('typeahead-menu')
|
||||
expect(typeaheadMenu).not.toBeNull()
|
||||
expect(typeaheadMenu).toHaveClass('z-50')
|
||||
|
||||
const ce = screen.getByTestId(CONTENT_EDITABLE_TEST_ID)
|
||||
const fiber = getReactFiberFromDom(ce)
|
||||
|
||||
@ -318,7 +318,7 @@ const ComponentPicker = ({
|
||||
//
|
||||
// We no need the position function of the `LexicalTypeaheadMenuPlugin`,
|
||||
// so the reference anchor should be positioned based on the range of the trigger string, and the menu will be positioned by the floating ui.
|
||||
anchorClassName="z-999999 translate-y-[calc(-100%-3px)]"
|
||||
anchorClassName="z-50 translate-y-[calc(-100%-3px)]"
|
||||
menuRenderFn={renderMenu}
|
||||
triggerFn={checkForTriggerMatch}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user