File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export interface AutoSuggestionProps {
164164
165165 /** If this is enabled the value of the editor is replaced with the initialValue if it changes.
166166 * FIXME: This property is a workaround for some "controlled" usages of the component via the initialValue property. */
167- reInitOnInitialValueChange ?: boolean
167+ reInitOnInitialValueChange ?: boolean ;
168168}
169169
170170// Meta data regarding a request
@@ -196,7 +196,7 @@ const AutoSuggestion = ({
196196 validationRequestDelay = 200 ,
197197 mode,
198198 multiline = false ,
199- reInitOnInitialValueChange = false
199+ reInitOnInitialValueChange = false ,
200200} : AutoSuggestionProps ) => {
201201 const value = React . useRef < string > ( initialValue ) ;
202202 const cursorPosition = React . useRef ( 0 ) ;
Original file line number Diff line number Diff line change @@ -2,11 +2,8 @@ import React from "react";
22
33import { CLASSPREFIX as eccgui } from "../../configuration/constants" ;
44import AutoSuggestion , { AutoSuggestionProps } from "../AutoSuggestion/AutoSuggestion" ;
5- import Spinner from "../Spinner/Spinner" ;
65
7- export interface CodeAutocompleteFieldProps extends AutoSuggestionProps {
8-
9- }
6+ export interface CodeAutocompleteFieldProps extends AutoSuggestionProps { }
107
118/**
129 * Input component that allows partial, fine-grained auto-completion, i.e. of sub-strings of the input string.
@@ -16,8 +13,10 @@ export interface CodeAutocompleteFieldProps extends AutoSuggestionProps {
1613 */
1714export function CodeAutocompleteField ( { className, ...otherProps } : CodeAutocompleteFieldProps ) {
1815 // Currently this works only as an alias element for `AutoSuggestion`.
19- return < AutoSuggestion
16+ return (
17+ < AutoSuggestion
2018 className = { `${ eccgui } -codeautocompletefield` + ( className ? ` ${ className } ` : "" ) }
2119 { ...otherProps }
2220 />
21+ ) ;
2322}
You can’t perform that action at this time.
0 commit comments