show help text for textareas as well w/ burnettk

This commit is contained in:
jasquat 2023-02-22 14:42:43 -05:00
parent 27cf9d7284
commit ccccf8bf96
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -1280,6 +1280,7 @@ class ProcessInstanceProcessor:
# by background processing. when that happens it can potentially overwrite # by background processing. when that happens it can potentially overwrite
# human tasks which is bad because we cache them with the previous id's. # human tasks which is bad because we cache them with the previous id's.
# waiting_tasks = bpmn_process_instance.get_tasks(TaskState.WAITING) # waiting_tasks = bpmn_process_instance.get_tasks(TaskState.WAITING)
# waiting_tasks = bpmn_process_instance.get_waiting()
# if len(waiting_tasks) > 0: # if len(waiting_tasks) > 0:
# return ProcessInstanceStatus.waiting # return ProcessInstanceStatus.waiting
if len(user_tasks) > 0: if len(user_tasks) > 0:

View File

@ -61,6 +61,11 @@ function TextareaWidget<
labelToUse = `${labelToUse}*`; labelToUse = `${labelToUse}*`;
} }
let helperText = null;
if (uiSchema && uiSchema['ui:help']) {
helperText = uiSchema['ui:help'];
}
let invalid = false; let invalid = false;
let errorMessageForField = null; let errorMessageForField = null;
if (rawErrors && rawErrors.length > 0) { if (rawErrors && rawErrors.length > 0) {
@ -73,6 +78,7 @@ function TextareaWidget<
id={id} id={id}
name={id} name={id}
className="text-input" className="text-input"
helperText={helperText}
value={value || ''} value={value || ''}
labelText="" labelText=""
placeholder={placeholder} placeholder={placeholder}