Revize 89154cb1
Přidáno uživatelem Dominik Poch před téměř 3 roky(ů)
webapp/components/annotation/AnnotationItem.tsx | ||
---|---|---|
138 | 138 |
<Col> |
139 | 139 |
<Input.TextArea |
140 | 140 |
defaultValue={occurrence.note ?? ''} |
141 |
onChange={onChangeNote(occurrence)}
|
|
141 |
onBlur={onChangeNote(occurrence)}
|
|
142 | 142 |
/> |
143 | 143 |
</Col> |
144 | 144 |
</Row> |
webapp/contexts/AnnotationContext.tsx | ||
---|---|---|
273 | 273 |
{ note: newValue } |
274 | 274 |
); |
275 | 275 |
|
276 |
await refreshAnnotation();
|
|
276 |
occurrence.note = newValue;
|
|
277 | 277 |
}; |
278 | 278 |
|
279 | 279 |
/** |
... | ... | |
297 | 297 |
{ sentiment: newValue } |
298 | 298 |
); |
299 | 299 |
|
300 |
await refreshAnnotation();
|
|
300 |
occurrence.sentiment = newValue;
|
|
301 | 301 |
}; |
302 | 302 |
|
303 | 303 |
const remapAnnotations = (data: AnnotationInfo) => { |
Také k dispozici: Unified diff
Removed refresh and updated note on blur