mirror of
https://github.com/desktop/desktop
synced 2024-06-30 22:54:41 +00:00
Nope, rename to componentDidMount
is better 😅
This commit is contained in:
parent
197f93f6d3
commit
c23f481776
|
@ -168,15 +168,20 @@ export abstract class AutocompletingTextInput<
|
|||
) {
|
||||
super(props)
|
||||
|
||||
const elementId = createUniqueId('autocompleting-text-input')
|
||||
const autocompleteContainerId = createUniqueId('autocomplete-container')
|
||||
|
||||
this.state = {
|
||||
autocompletionState: null,
|
||||
caretCoordinates: null,
|
||||
}
|
||||
}
|
||||
|
||||
public componentDidMount() {
|
||||
const elementId = createUniqueId('autocompleting-text-input')
|
||||
const autocompleteContainerId = createUniqueId('autocomplete-container')
|
||||
|
||||
this.setState({
|
||||
uniqueInternalElementId: elementId,
|
||||
autocompleteContainerId,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
public componentWillUnmount() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user