marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

ResizeSensor doesn't call an update when div's value is changed #270

Closed misha-erm closed 5 years ago

misha-erm commented 5 years ago

Hi there,

So, I experience the next problem: I attach ResizeSensor to a span which can change it's width and it's value during the time. When I change width of span - everything works as expected But when I change span's value and it's width got changed as a side effect - ResizeSensor doesn't notify me.

Is it expected behavior?

Thanks in advance

"css-element-queries": "1.1.1" MacOs 10.14.4 Mojave Google Chrome Version 74.0.3729.157 (Official Build) (64-bit)

marcj commented 5 years ago

Please provide an working example using stackblitz/jsfiddle/etc

misha-erm commented 5 years ago

Sorry, looks like found an issue.

I use react and after state update it just removes ResizeSensor's nodes.

Closing for now