File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,23 @@ const AnnotationStoreModel = types
68
68
self . selected . selected = false ;
69
69
}
70
70
71
+ // When FF_SIMPLE_INIT is enabled, we need to ensure all annotations have their results set given that, due
72
+ // to enforcing a better performance, we are not "selecting" all annotations and therefore the right values
73
+ // won't be set.
74
+ if ( isFF ( FF_SIMPLE_INIT ) ) {
75
+ self . annotations . forEach ( annotation => {
76
+ // Skip the current annotation as it's already handled
77
+ if ( annotation === self . selected ) return ;
78
+
79
+ // Set results for each annotation without selecting it
80
+ annotation . results . forEach ( result => {
81
+ if ( result . from_name . type === "choices" || result . from_name . type === "taxonomy" ) {
82
+ result . from_name . updateFromResult ( result . mainValue ) ;
83
+ }
84
+ } ) ;
85
+ } ) ;
86
+ }
87
+
71
88
self . annotations . forEach ( ( c ) => {
72
89
c . editable = false ;
73
90
} ) ;
Original file line number Diff line number Diff line change @@ -89,3 +89,7 @@ body :global(.ant-checkbox-checked)::after {
89
89
:global(.ant-checkbox-wrapper span + span ) {
90
90
color : var (--color-neutral-content );
91
91
}
92
+
93
+ body :global(.ant-checkbox-disabled .ant-checkbox-inner ) {
94
+ background-color : var (--color-neutral-background );
95
+ }
You can’t perform that action at this time.
0 commit comments