feat(editor): show fetching state of name auto complete
This commit is contained in:
parent
8dd91002d7
commit
b475377f64
3 changed files with 16 additions and 5 deletions
|
@ -58,8 +58,12 @@ function createSuggestionRenderer(): SuggestionOptions['render'] {
|
|||
})
|
||||
},
|
||||
|
||||
onBeforeUpdate(props) {
|
||||
component.updateProps({ ...props, isPending: true })
|
||||
},
|
||||
|
||||
onUpdate(props) {
|
||||
component.updateProps(props)
|
||||
component.updateProps({ ...props, isPending: false })
|
||||
|
||||
if (!props.clientRect)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue