#nishant_chandla
1 messages · Page 1 of 1 (latest)
Not super familiar but I can try
Okay, In this example I am using TextArea Component from stripe.
When I write something and press space immediately. The cursor(caret) position doesn't update. (Shown when I select the spaces added).
PS: the TextArea component works in some of the pages I am working with but doesn't work in some.
Hi, sorry, my colleague will join shortly
Hey! Taking over for my colleague. Let me catch up.
Could you please share the code you are using in order to display that UI ?
Are you using this with Stripe Apps?
https://stripe.com/docs/stripe-apps/components/textarea
the TextArea component works in some of the pages I am working with but doesn't work in some.
What could be the difference with these pages ?
There is no difference between the two pages.
This is the code
The only difference is the defaultValue is different in both pages. I have already tried removing the defaultValue prop altogether. no luck
What about setContent method ?
this
This seems to be something updating the content in multiple places
Try removing the onChange and defaultValue of that TextArea and do a test to see if you still have the same behavior
Could you share with me the other TextArea code ?
Were you sure that these changes were taken into account and loaded in the UI ?
Between, I'm not able to reproduce with this sample:
<TextArea
label="Description"
placeholder="Acme Inc was founded in…"
defaultValue="Stripe Apps lets you embed custom…"
onChange={(e) => {
console.log(e.target.value);
}}
/>
Yes, i thought the same and update the label to test. Changes were loaded.
Do you have some kind of logic that is manipulating the value of that field depending on space character?
no
Try the test the code I shared above ?
Can you try using the textarea inside a focus view component. That is what i am doing in both the pages
Can you share more details about that ?
Okay i can share you screenshots in 5-10 mins. Afk