bentd / outline-editor

outline editor component for standardnotes
0 stars 0 forks source link

On Firefox, I'm unable to get the text cursor to appear on initial load in the first bullet #2

Closed moughxyz closed 5 years ago

moughxyz commented 5 years ago

Clicking inside the bullet yields no result.

Firefox 66.0.3

bentd commented 5 years ago

Added a min-height to the text div so that it isn't 0 on Firefox when the div is empty.

            <div className={ "content " + (this.state.noteEmpty ? "w-100" : "") }
                 contentEditable="true"
                 suppressContentEditableWarning="true"
                 ref={ this.content }
                 style={{ outline: "0px solid transparent", minHeight: "1em", wordWrap: "break-word" }}
                 onKeyDown={ this.onKeyDown.bind(this) }
                 onKeyUp={ this.onKeyUp.bind(this) }>
              { this.state.content }
            </div>