Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the update of link and suggestions in LinkControl (#32320)
* Fix the update of link and suggestions in LinkControl When switching between two links, the LinkControl component does not unmount. The value prop will change but the component does not react to this change and does not show the updated link & suggestions. * Remove trim from function argument for updateSuggestions. Trimming gets done in the function itself, since PR #35060. * Update packages/block-editor/src/components/url-input/index.js Co-authored-by: Dave Smith <[email protected]> * Take into consideration the case when the value changes with an empty string This was removed by the first commits, but we need to take into consideration that we also want to show the initial suggestions when the new value is empty * Update packages/block-editor/src/components/url-input/index.js Co-authored-by: Dave Smith <[email protected]> Co-authored-by: Dave Smith <[email protected]>
- Loading branch information