1
- import { ActionValue , ListAttributeValue , ObjectItem } from "mendix" ;
2
- import { executeAction } from "@mendix/widget-plugin-platform/framework/execute-action" ;
1
+ import { ListAttributeValue , ObjectItem } from "mendix" ;
3
2
import {
4
3
ComboboxContainerProps ,
5
4
LoadingTypeEnum ,
@@ -24,7 +23,6 @@ export class BaseDatabaseSingleSelector<T extends string | Big> implements Singl
24
23
status : Status = "unavailable" ;
25
24
type = "single" as const ;
26
25
protected _objectsMap : Map < string , ObjectItem > = new Map ( ) ;
27
- protected onChangeEvent ?: ActionValue ;
28
26
protected lazyLoader : LazyLoadProvider = new LazyLoadProvider ( ) ;
29
27
30
28
constructor ( ) {
@@ -33,17 +31,8 @@ export class BaseDatabaseSingleSelector<T extends string | Big> implements Singl
33
31
}
34
32
35
33
updateProps ( props : ComboboxContainerProps ) : void {
36
- const {
37
- captionProvider,
38
- captionType,
39
- clearable,
40
- customContentType,
41
- ds,
42
- filterType,
43
- lazyLoading,
44
- loadingType,
45
- onChangeEvent
46
- } = extractDatabaseProps ( props ) ;
34
+ const { captionProvider, captionType, clearable, customContentType, ds, filterType, lazyLoading, loadingType } =
35
+ extractDatabaseProps ( props ) ;
47
36
48
37
this . lazyLoader . updateProps ( ds ) ;
49
38
this . options . _updateProps ( {
@@ -54,14 +43,12 @@ export class BaseDatabaseSingleSelector<T extends string | Big> implements Singl
54
43
} ) ;
55
44
56
45
this . clearable = clearable ;
57
- this . onChangeEvent = onChangeEvent ;
58
46
this . customContentType = customContentType ;
59
47
this . lazyLoading = lazyLoading ;
60
48
this . loadingType = loadingType ;
61
49
}
62
50
63
51
setValue ( objectId : string | null ) : void {
64
52
this . currentId = objectId ;
65
- executeAction ( this . onChangeEvent ) ;
66
53
}
67
54
}
0 commit comments