Multifield Reordering Issue in Touch UI | Community
Skip to main content
March 7, 2022

Multifield Reordering Issue in Touch UI

  • March 7, 2022
  • 2 replies
  • 1491 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

milind_bachani
Adobe Employee
Adobe Employee
March 7, 2022

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

savi50Author
March 7, 2022

Hi @milind_bachani ,

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

 

milind_bachani
Adobe Employee
Adobe Employee
March 7, 2022

@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 ?

Kiran_Vedantam
Community Advisor
Community Advisor
March 7, 2022

Hi @savi50 

 

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

 

Thanks,

Kiran Vedantam.