negomi/react-burger-menu

Changing the `display` of `bm-item` in css does not reflect back

jmanacup opened this issue · 1 comments

          For some reason, changing the `display` of `bm-item` does not reflect back. It is still always `display: block`. Can anyone double check to see if this is only happening in my end?

Originally posted by @jmanacup in #249 (comment)

EDIT: I needed to add !important after changing the code to make it work. Is that how it is supposed to be?

Hi @jmanacup, if you're using CSS then yes, you would have to use !important. If passing styles as a JS object then it wouldn't be necessary.