SolidJSS
SolidJSโ€ข3y agoโ€ข
7 replies
romanobro

Setting innerhtml causes error

using contenteditable h1 tag, I have been able to make a "notecard" which you can edit and the content of which is bound to a signal. onFocusOut causes the following function to run
(e) =>{
setText(e.currentTarget.innerText || "")}
. I have tried many ways to make sure that the inner text is not null, yet i am still getting this error. Any tips would be much appreciated
Screen_Shot_2023-02-21_at_10.26.30_AM.png
Was this page helpful?