SolidJSS
SolidJSโ€ข2y agoโ€ข
3 replies
Tom

Style attribute not updating in Safari

I wonder if anyone has run into this. I've got a SplitPane component that I just discovered doesn't work in Safari. It turns out the style attribute is not updating. I've got it down to

<div data-foo={`width: ${width()}`} style={`width: ${width()}`}>

I can see data-foo changing in the element inspector, but style remains unchanged.

It's the same with the object version of style

<div data-foo={`width: ${width()}`} style={{width: width()}}}>


Any ideas? Thanks : )
Was this page helpful?