Typed text dissapears when typing fast across string fields on the Modern UX
search cancel

Typed text dissapears when typing fast across string fields on the Modern UX

book

Article ID: 191622

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

STEPS TO REPRODUCE:
1. Go to Studio > Objects > Project object
2. Create 4 large string attributes: 
   Ensure all 3 attributes have the API Attribute ID specified
3. Go to the Modern UX > Blueprints
4. Create a blueprint for the project object and add the 4 fields on the Blueprint Details 
   (Add them next to each other)
5. Get an existing project and associate it to the new blueprint
6. Open the project and go to the Details tab. You see the string fields
7. Copy the following text: Welcome 
8. Paste the text on all 4 fields on a fast manner either by using the mouse or the tabulator 

Expected Results: Text is saved correctly on all 3 fields.
Actual results: Typed in text disappears from one of the fields.

ADDITIONAL INFORMATION: If you start typing and move across fields by using the tabulator, you can see that entered text data is cropped or does not save as you enter it.
Key here is to be fast enough navigating and typing.

Cause

The reason this happens is that after an update of one field, it is quite likely that other fields have changed due to many different reasons, some of which are Clarity business logic prevents updating of a field, calculated attributes change, display mappings change, any kind of data coupling across fields.

So the process we have today, is make a PATCH api call, then make a GET api call to refresh all of the fields. What is happening is that the GET call is significantly slower than the PATCH call. What we have observed in this rapid updating is that for every one field that updates successfully, the immediate next field does not update.

Here is an illustration of what is happening:

Field 1 - click to focus, paste text, blur (when clicking into Field 2)
PATCH F1
GET all fields

Field 2 - click to focus, paste text, blur (when clicking into Field 3)
GET F1 updates all fields, with Field 2 previous value (empty)
PATCH F2 (field is blank, api call is never made)

Field 3 - click to focus, paste text, blur (when clicking into next field)
PATCH F3
GET all fields (updates correctly)

Resolution

This fix is targeted for 16.0.3

 

Additional Information

This scenario can happen as well when copy and pasting the same text multiple times on a Rich Text field.

You might notice the text pasted overwrites part of the existing text and that the cursor moves to the beginning of the box