michelson / dante2

A complete rewrite of dante editor in draft-js
https://michelson.github.io/dante2/
Other
912 stars 121 forks source link

Sticky toolbar does not disappear when user clicks outside of the dante editor #183

Open thith opened 5 years ago

thith commented 5 years ago

When the sticky toolbar is on, if I click on the space outside of the dante editor, the toolbar does not disappear. If I click on the dante editor, it does disappear.

Expect: I should disappear when I click on any place inside the document. Note: the non-stick toolbar work as expected.

In addition, please set the z-index of sticky toolbar to something big, and let user specify its top. My current hack.

#dante-menu.dante-sticky-menu {
  /* change some style to avoid confict with the appbar */

  /* the appbar z-index is 1100 */
  z-index: 1200;
  top: 50px!important;
  text-align: center;
}