Expand my Community achievements bar.

Multifield Reordering Issue in Touch UI

Avatar

Level 3

Hi,

 I have added multifield in my cq:dialog which has richtext and image field .Data I have authored it is correctly displayed but when I wanted to order  2nd item to be 1 st  position then I got the below issue.

does any one face the same issue.

"richtext.js:6856

Uncaught TypeError: Cannot read properties of undefined (reading 'previousSibling')
at Object.getPreviousNode (richtext.js:6856)
at Object.getPreviousTextNode (richtext.js:6888)
at Object.adaptToInclusiveEndNode (richtext.js:15715)
at instanceGenerator.createFromDocument (richtext.js:12803)
at Object.createNodeList (richtext.js:9822)
at instanceGenerator.analyzeSelection (richtext.js:4631)
at instanceGenerator.updateToolbar (richtext.js:5033)
at instanceGenerator.onFocus (richtext.js:4038)
at instanceGenerator.focus (richtext.js:3896)
at instanceGenerator.execute (richtext.js:1443)

5 Replies

Avatar

Employee Advisor

Hi @savi50 ,

 "I have authored it is correctly displayed but when I wanted to order  2nd item to be 1 st  position then I got the below issue." by this do you mean that you want to display the data in descending order ?
For example, if you are using coral multifield the structure would be something like :

multifieldNode
   -item0
   -item1
   -item2

And you are expecting it to be displayed as :

-item2
-item1
-item0

in the frontend ? Or you are looking for something else ?

Thanks

Avatar

Level 3

Hi @milind_bachani ,

       right I have to display but in touch UI multifield Dialog there is ordering option .

 

Avatar

Employee Advisor

@savi50 - do you mean that drag and reorder is not working for you and is throwing the js error you have pasted above?
You are talking about the option highlighted in the image below ?
Screenshot 2022-03-07 at 4.28.00 PM.png

Avatar

Community Advisor

Hi @savi50 

 

Can u check what error.log says? Also, do you have any custom code in your multifield?

 

Thanks,

Kiran Vedantam.