RepoUrlPickerRepoName did not keep the input value
Use onInputChange instead of onChange for propagating the input evnet. Previous version was used <Input /> . In this case onChange was fired each input event. But in <Autocomplete /> is not fired. Signed-off-by: Hitoshi Kamezaki <kamezaki@ap-com.co.jp>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': patch
|
||||
---
|
||||
|
||||
fix(scaffolder): use onInputChange instead onChange in RepoUrlPickerRepoName because need to keep the input value when move focus.
|
||||
@@ -67,7 +67,7 @@ export const RepoUrlPickerRepoName = (props: {
|
||||
) : (
|
||||
<Autocomplete
|
||||
value={repoName}
|
||||
onChange={(_, newValue) => {
|
||||
onInputChange={(_, newValue) => {
|
||||
onChange(newValue || '');
|
||||
}}
|
||||
options={availableRepos || []}
|
||||
|
||||
Reference in New Issue
Block a user