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

Support contenteditable="plaintext-only" #8795

Closed
AndreiSoroka opened this issue Jul 16, 2023 · 0 comments · Fixed by #8796
Closed

Support contenteditable="plaintext-only" #8795

AndreiSoroka opened this issue Jul 16, 2023 · 0 comments · Fixed by #8796
Labels
has PR A pull request has already been submitted to solve the issue

Comments

@AndreiSoroka
Copy link

AndreiSoroka commented Jul 16, 2023

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNp9UUFOwzAQ/MriS0CijVBvVVoJqkrAARAgcfElJNvUxbEtexOKovydjaOWHlAlX3Zmdjxjd+LWuWnboJiLLBReOYKA1LilNKp21hN04HEDPWy8rSFhaSKNNIU1gaAOFSwG/jK5R60tfFivy4vkSposHe3YiAfC2umckCeAbHuz7Lq43PdZylNElXENQTupbYl6IQXzUoxUqVrgGwn5lIryT40sYEfFwJ4m1ugf1q62uakQasxS3uDVLD1eLK4FBfbYqGq6C9Zw4W7wlqKwtVMa/bMjxa2kmENkBi7nUt+PESPf4PUBL7ZYfP2D78J+wKR48RjQtyjFkaPcV0gjvX574twnJJduNKvPkK8YrG6GjKPsrjElxz7RxbQP8duUqd7Des8vFg6lhqCDso96KfgrV2eq/8WdTWdxT5pe9L9kVbtc

Steps to reproduce

Make component where you have

<div contenteditable="plaintext-only">Some text</div>

What is expected?

contenteditable="plaintext-only" is working

https://caniuse.com/mdn-html_global_attributes_contenteditable_plaintext-only

What is actually happening?

error TS2322: Type '"plaintext-only"' is not assignable to type '"inherit" | Booleanish | undefined'.

74     contenteditable="plaintext-only"
       ~~~~~~~~~~~~~~~

  node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts:323:5
    323     contenteditable?: Booleanish | 'inherit';
            ~~~~~~~~~~~~~~~
    The expected type comes from property 'contenteditable' which is declared here on type 'HTMLAttributes & ReservedProps & Record<string, unknown>'

System Info

No response

Any additional comments?

No response

@Justineo Justineo added the has PR A pull request has already been submitted to solve the issue label Jul 31, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants