fix(web): z-index issue of variable picker in prompt editor (#37163)

This commit is contained in:
KVOJJJin 2026-06-08 13:39:06 +08:00 committed by GitHub
parent f15a8f02ef
commit d46a4c05b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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}
/>