Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contenteditable Attribute Support #124

Closed
Reloaded2 opened this issue Aug 13, 2019 · 1 comment
Closed

Contenteditable Attribute Support #124

Reloaded2 opened this issue Aug 13, 2019 · 1 comment
Assignees

Comments

@Reloaded2
Copy link

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",

@plusgut
Copy link
Member

plusgut commented Aug 14, 2019

will be implemented in https://github.com/plusnew/driver-dom, but with the onInput event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants