-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pte): add initialActive
prop to PortableTextInput
#6638
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
initialActive
prop to `PortableTextInputinitialActive
prop to PortableTextInput
No changes to documentation |
await $pteField | ||
.locator(`[data-testid='pt-editor__toolbar-card']`) | ||
.waitFor({state: 'visible', timeout: 1000}) | ||
await $overlay.waitFor({state: 'detached', timeout: 1000}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change – note that we now check for the overlay to be detached as opposed to checking for toolbar visibility, since this can fail with PTE inputs with hideToolbar=true
Component Testing Report Updated May 16, 2024 9:12 AM (UTC)
|
(Removed carolina as a reviewer as she's OOO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The merge-base changed after approval.
Description
This PR adds
initialActive
to<PortableTextInput>
.This simply allows PTE inputs to be mounted without the need to manually 'activate' them by focusing beforehand.
This is used by Create as all PTE inputs there are always active by default.
What to review
Like other recent PTE changes brought in from Create, existing PTE inputs in the studio are unaffected. PTE inputs in the studio should still require activation by manually focusing / clicking them.
Testing
BlcokEditor examples
in test-studiohideToolbar
andinitialFullscreen
have also been added)Notes for release
N/A