(props: InsertBoxProps)
| 152 | private suggestionsRef: React.RefObject<HTMLUListElement> |
| 153 | |
| 154 | constructor(props: InsertBoxProps) { |
| 155 | super(props) |
| 156 | this.inputRef = React.createRef() |
| 157 | this.suggestionsRef = React.createRef() |
| 158 | |
| 159 | this.state = { |
| 160 | userInput: '', |
| 161 | autoWidth: this.getWidth(''), |
| 162 | cursorPosition: null, |
| 163 | filteredSuggestions: [], |
| 164 | autocompleters: [], |
| 165 | staticSuggestions: [], |
| 166 | staticSuggestionKeys: new Set(), |
| 167 | activeSuggestion: 0, |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | static getDerivedStateFromProps(props: InsertBoxProps, state: InsertBoxState) { |
| 172 | const { cursorPosition, selection } = props |
nothing calls this directly
no outgoing calls
no test coverage detected