-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.0.3rc1
A tooltip is always prepared, even if item value is an empty string or consists of several spaces.
Steps to reproduce:
Case 1:
- Create a trapper item with type of information "Character" or "Text".
- Send an empty string to the trapper item.
- Navigate to Latest data.
- Observed: The last value of the trapper item is empty.
- Right-click on the cell with item value and select "Inspect element".
- Observed:
<td> <span class="cursor-pointer" data-hintbox="1" data-hintbox-static="1" data-hintbox-delay="0"></span> <div class="hint-box" style="display: none;"><div class="hintbox-wrap"></div></div> </td>
Case 2:
- Send a string with multiple spaces to the trapper item.
- Observed: The browser displays extra spaces as one and the result is very similar to the Case 1.
Case 3:
- Create a host with value mapping <empty string> => Empty string.
- Create a trapper item with type of information "Character" on this host.
- Send an empty string to the trapper item.
- Navigate to Latest data.
- Observed: The last value is "Empty string ()". An empty tooltip is displayed when the cursor is hovered over the item value.
- Create an Item value widget for this item.
- Observed: The last value is "Empty string ()".
Expected:
1. Item value should always be trimmed for both last value and tooltip. There is no need to rely on the browser to do this.
2. If trimming results in an empty string, the latter should be displayed using a special word, for example, Empty. Tooltip should not be displayed for such values.