Found a bug in the sample code


I noticed a bug in the sample code for creating styled text here

Step 3 Create the main function

line 4 should be: node.styleRanges not node.styleRange

I posted this bug here with a video

I’m on macOS Mojave and XD version


Hi @rmcgee,

Really appreciate you finding the bug and reporting it here. I’ve created an issue in our Samples Github page. Also, I will fix the issue by EOD today.

1 Like

Awesome. Glad I could help.

Posted github PR for this

1 Like