Bug: richTextEditor component in grid view does not display the correct item value

I'd like to report a bug with the richTextEditor component within a grid view not displaying the actual value properly.

If you look below, the displayed front-end copy in richTextEditor component, which is an element within gridview, is displaying a completely different value than the actual item.correct_value that it's pointing towards. any way to fix?

Hello @glencoco ,

I understand your issue, but when I tested it on my system with some data, it worked fine for me.

Could you share your data or sample data (similar to the original) so I can better understand your issue?

I’ll also share my screenshots and the sample data I used for testing.
Code:

return [
  {
    "id": 1,
    "title": "Invoice Summary",
    "content": "<h2>Invoice Summary</h2><p><strong>Customer Name:</strong> John Doe</p><p><strong>Invoice Number:</strong> INV-202401</p><p><strong>Total Amount:</strong> <span style='color: green;'>$1,200.00</span></p><ul><li>Item 1: Diamond Ring - <em>$500</em></li><li>Item 2: Gold Necklace - <em>$700</em></li></ul><p><u>Note:</u> Payment is due within 7 days.</p>",
    "date": "2024-08-10",
    "author": "Admin"
  },
  {
    "id": 2,
    "title": "Terms & Conditions",
    "content": "<h3>Terms & Conditions</h3><p>All payments must be made within <strong>7 days</strong> of receiving the invoice.</p><p>Late payments will incur a <span style='color: red;'>5% penalty</span>.</p>",
    "date": "2024-08-10",
    "author": "Admin"
  },
  {
    "id": 3,
    "title": "Customer Notes",
    "content": "<p><strong>Special Request:</strong> Please deliver the package before <em>August 15, 2024</em>.</p><p><strong>Preferred Contact:</strong> customer@example.com</p>",
    "date": "2024-08-10",
    "author": "Customer Support"
  }
]

ScreenShots:

5 Likes

Hey @glencoco! Thanks for reaching out and sharing this. :+1:

Like @WidleStudioLLP, I'm not able to replicate the behavior that you're describing. It may not be relevant, but it's worth pointing out the fact that inspecting item in the component configuration will always show the value of the very first element in the grid - not the one that is currently selected or highlighted.

If there is something going on, it would definitely be helpful to get a JSON export of your app that includes hard-coded query results.