-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problemsNeeds TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.
Description
Description
Very slow updateBlockAttributes on Safari 14.0.3 (macOs big sur)
Step-by-step reproduction instructions
- loop child block from parent.
- do updateBlockAttributes of child attribute from parent.
Expected behaviour
updateBlockAttributes should be happened instantly. this kind of behavior not happen on other browser (firefox, google chrome, microsoft edge)
Actual behaviour
very slow update when updateBlockAttributes executed on safari.
Screenshots or screen recording (optional)
https://share.getcloudapp.com/RBu4rXDn
Code snippet (optional)
useEffect(() => {
if (isSelected) {
const rootId = getBlockRootClientId(clientId);
const childs = getBlocks(rootId);
childs.map(child => {
if (child.clientId !== clientId) {
updateBlockAttributes(child.clientId, { active: false });
}
});
setAttributes({ active: true });
}
}, [isSelected]);WordPress information
- WordPress version: 5.6.2
- Gutenberg version: 10.0.1
- Are all plugins except Gutenberg deactivated? No
- Are you using a default theme (e.g. Twenty Twenty-One)? Yes
Device information
- Device: iMac
- Operating system: macOs Big Sur
- Browser: Safari 14.0.3
Metadata
Metadata
Assignees
Labels
Browser IssuesIssues or PRs that are related to browser specific problemsIssues or PRs that are related to browser specific problemsNeeds TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.