mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-15 11:04:43 +08:00
This CL does not change behavior, but introduces a contextual '_applyOriginalStyle()' to prepare for free-flow name editing: - Used when selecting a non-applyable name in SuggestBox - Reverting to the original style now restores the 'originalProperty'. - If a user free-flows, then restores the original (only possible when free-flowing names), we still should 'updateTitle()'. In this CL, we do it explicitly in editCancelled. Bug: 931145 Change-Id: I88a2a6feac688c09ed232b8ea2aa4b94d898590d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548584 Reviewed-by: Joel Einbinder <einbinder@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#661637} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: c535e51520fd6c41c84f0da9485bda4899d90c59