Skip to content

Contenteditable Attribute Support  #124

@Reloaded2

Description

@Reloaded2

Expected behavior and actual behavior.

Elements with attributes "contenteditable" are not yet implemented in plusnew.
Please support this atttribute.

Steps to reproduce the problem.

 <currentValue.Observer>{currentValueState =>
                <span
                  key="newChip"
                  contenteditable="true"
                  onkeydown={(event) => {
                    // Prevent default line-breaks
                    if (event.key === 'Enter') {
                      event.preventDefault();
                    }
                    if (event.currentTarget !== null) {
                      const value = (event.currentTarget as HTMLDivElement).textContent;

                      if (value !== null) {
                        if (value.length > 0) {
                          currentValue.dispatch(value);
                        }
                      }
                    }
                  }}>
                  {currentValueState}
                </span>
 }</currentValue.Observer>

Specifications like the version of the project or browser version

"plusnew": "0.6.57",

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions