From 5471fd552cb1b669d2d651f59a8714e4a168827b Mon Sep 17 00:00:00 2001 From: paldepind Date: Sun, 13 Sep 2015 20:46:10 +0200 Subject: [PATCH] Mention that style module does not remove attributes #21 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index b002222..54639fa 100644 --- a/README.md +++ b/README.md @@ -239,6 +239,16 @@ h('span', { }, 'Say my name, and every colour illuminates'); ``` +Note that the style module does not remove style attributes if they are removed +as properties from the style object. To remove a style you should instead set +it to the empty string. + +```javascript +h('div', { + style: {position: shouldFollow ? 'fixed' : ''} +}, 'I, I follow, I follow you'); +``` + #### Delayed properties You can specify properties as being delayed. Whenever these properties change