@@ -24,7 +24,7 @@ import {
2424 SelectInputValidationSection ,
2525} from "../selectInputComp/selectInputConstants" ;
2626import { selectInputValidate } from "../selectInputComp/selectInputConstants" ;
27- import { SelectEventHandlerControl } from "comps/controls/eventHandlerControl" ;
27+ import { TreeEventHandlerControl } from "comps/controls/eventHandlerControl" ;
2828import { trans } from "i18n" ;
2929import { useContext } from "react" ;
3030import { EditorContext } from "comps/editorState" ;
@@ -63,8 +63,7 @@ const childrenMap = {
6363 label : withDefault ( LabelControl , { position : "column" } ) ,
6464 autoHeight : AutoHeightControl ,
6565 verticalScrollbar : withDefault ( BoolControl , false ) ,
66- // TODO: more event
67- onEvent : SelectEventHandlerControl ,
66+ onEvent : TreeEventHandlerControl ,
6867 style : styleControl ( InputFieldStyle , 'style' ) ,
6968 labelStyle : styleControl ( LabelStyle . filter ( ( style ) => [ 'accent' , 'validate' ] . includes ( style . name ) === false ) , 'labelStyle' ) ,
7069 inputFieldStyle :styleControl ( TreeStyle , 'inputFieldStyle' )
@@ -127,6 +126,7 @@ const TreeCompView = (props: RecordConstructorToView<typeof childrenMap>) => {
127126 } }
128127 onFocus = { ( ) => props . onEvent ( "focus" ) }
129128 onBlur = { ( ) => props . onEvent ( "blur" ) }
129+ onDoubleClick = { ( ) => props . onEvent ( "doubleClick" ) }
130130 />
131131 </ ScrollBar >
132132 </ Container >
0 commit comments