-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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 receiving duplicate values #5805
Comments
Why not use |
As you commented in the other issue, the behaviour is incosistent but |
This type of usage will be a wontfix. |
Confirmed that |
|
For people using return createElement('div', {
attrs:{
cotenteditable:true
},
domProps:{
innerText:this.content
}
}, ''); |
I need your help when i was using the vue js get following error
app.js:106867 [Vue warn]: Error in v-on handler: "ReferenceError:
stripeResponseHandler is not defined"
found in
…---> <MessagepackageslistComponent> at
resources/js/components/MessagePackagesList.vue
<CreditdetailComponent> at
resources/js/components/CreditDetailComponent.vue
<Root>
warn @ app.js:106867
logError @ app.js:108126
globalHandleError @ app.js:108121
handleError @ app.js:108081
invokeWithErrorHandling @ app.js:108104
invoker @ app.js:108421
original._wrapper @ app.js:113774
app.js:108130 ReferenceError: stripeResponseHandler is not defined
at VueComponent.stripeResponse (app.js:4295)
at invokeWithErrorHandling (app.js:108096)
at HTMLFormElement.invoker (app.js:108421)
at HTMLFormElement.original._wrapper (app.js:113774)
logError @ app.js:108130
globalHandleError @ app.js:108121
handleError @ app.js:108081
invokeWithErrorHandling @ app.js:108104
invoker @ app.js:108421
original._wrapper @ app.js:113774
(index):3 Uncaught Error: Your key is invalid, as it contains whitespace.
For more info, see https://stripe.com/docs/stripe.js
at Function.b.validateKey ((index):3)
at Function.b.create ((index):2)
at Function.c.createToken ((index):2)
at HTMLFormElement.<anonymous> (app.js:4222)
at HTMLFormElement.dispatch (app.js:22950)
at HTMLFormElement.elemData.handle (app.js:22757)
how to solved thie error
On Wed, 6 Nov 2019 at 14:36, Aymeric ***@***.***> wrote:
For people using render with createElement(), you need to use domProps:
return createElement('div', {
attrs:{
cotenteditable:true
},
domProps:{
innerText:this.content
}
}, '');
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5805?email_source=notifications&email_token=ANGDLPBMTJ5SFNB766SVPHLQSKF2FA5CNFSM4DNYLIS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDF4J7A#issuecomment-550225148>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANGDLPAB5SQGHP32HXUO2ULQSKF2FANCNFSM4DNYLISQ>
.
|
Version
2.3.3
Reproduction link
https://codepen.io/timwis/pen/YQKXBY
Steps to reproduce
Type something in the box below, click outside the area (to blur), and watch it appear double.
What is expected?
The editable div keeps what you typed in it.
What is actually happening?
The editable div adds what you typed in it assumedly as part of the virtual dom update, showing it twice.
My hunch is this is an issue with how virtual dom patches a
<div contenteditable>
that starts with an empty value. If you change its starting value in the demo to an actual value (likefoo
) this issue doesn't happen.Related to #5234. Let me know if you prefer we keep the conversation there and we can close this issue.
The text was updated successfully, but these errors were encountered: