Reproduce:
- Use Firefox
- Goto Cockpit
- Open the Variables tab in the history view of a process instance that has a variable of type Object
- For the Object variable, click on the "Show Variable Log" button and select any entry in the variable update log
- You should see a modal with the serialized value of the variable at that moment in time
- Try to select the serialized variable value with your mouse
Expected:
- Selection of the variable value is possible
Observed:
- Selection is not possible
- Cursor shows that this action is forbidden
—
Hint:
If you click on the "Last Value" of the variable without going through the variable log, you can select and copy the value just fine.
There are two different modals responsible for displaying the data. For the variable instance log dialog, we use a disabled attribute, which prevents user interaction with the textarea. For the variable inspect dialog, we use readonly, which allows selection of the text, as described in MDN. We should also use the readonly attribute for the variable instance log dialog