You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
key={JSON.stringify({ initialValue, path })}// makes sure lexical is completely re-rendered when initialValue changes, bypassing the lexical-internal value memoization. That way, external changes to the form will update the editor. More infos in PR description (https://github.com/payloadcms/payload/pull/5010)
// We need to add initialConfig.editable to the key to force a re-render when the readOnly prop changes.
98
+
// Without it, there were cases where lexical editors inside drawers turn readOnly initially - a few miliseconds later they turn editable, but the editor does not re-render and stays readOnly.
// Big test which tests a bunch of things: Creation of blocks via slash commands, creation of deeply nested sub-lexical-block fields via slash commands, properly populated deeply nested fields within those
472
472
test('ensure creation of a lexical, lexical-field-block, which contains another lexical, lexical-and-upload-field-block, works and that the sub-upload field is properly populated',async()=>{
473
473
awaitnavigateToLexicalFields()
474
-
constrichTextField=page.locator('.rich-text-lexical').nth(1)// second
474
+
constrichTextField=page.locator('.rich-text-lexical').nth(2)// second
test('ensure pre-seeded uploads node is visible',async()=>{
883
883
// Due to issues with the relationships condition, we had issues with that not being visible. Checking for visibility ensures there is no breakage there again
884
884
awaitnavigateToLexicalFields()
885
-
constrichTextField=page.locator('.rich-text-lexical').nth(1)// second
885
+
constrichTextField=page.locator('.rich-text-lexical').nth(2)// second
0 commit comments