cubicweb #4881299 [web/data] Fix userCallbackThenUpdateUI to completely replace old DOM elements [validation pending]

[web/data] Fix userCallbackThenUpdateUI to completely replace old DOM elements

Without the 'swap' parameter, userCallbackThenUpdateUI() would replace the _children_ of the component with a new version of the componenent, thus creating nested divs/spans/buttons/etc.

prioritynormal
typebug
done in3.20.3
load1.000
load left0.000
closed by#2094262d6553 [web/data] Fix userCallbackThenUpdateUI to completely replace old DOM elements
patch[web/data] Fix userCallbackThenUpdateUI to completely replace old DOM elements [applied]