ezl / todo

0 stars 0 forks source link

there's some sort of bug with tag creation - i think it may be related to the preceding string/text somehow, or somehow the position counter is inaccurate due to the URL in the task text? #91

Closed ezl closed 2 years ago

ezl commented 2 years ago

https://www.loom.com/share/7bf59127915049afac8e48d1c8c188fe

ezl commented 2 years ago

@yassinya i see this is marked as ready for review -- out of curiosity, what was the problem and how did you fix it?

yassinya commented 2 years ago

@ezl It turns out the problem was that the “&” character was being converted to & when setting the value of the contenteditable input using innerHTML. I had to switch over to using textContent in order to solve it

ezl commented 2 years ago

Got it! Thanks for explaining!