#8065 closed defect (fixed)
TextArea: Removing words in a dijit.form.Textarea will remove spaces in the underlying html textarea
Reported by: | rodeoclown | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | Dijit - Form | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If you have text "blah foo bar" and delete "foo ", the space in front of it is replaced with a , which is then filtered out in the Textarea.setValue() function.
This means that words can be concatenated, but this won't be visible until the value from the text area is saved, and then retrieved later.
I spent 4 and a half hours today tracking it down, and the problem is on line 90 of Textarea.js - the very first replace regEx is stripping out and replacing it with "".
My fix was to remove the from that regex, and add another replace call to the list replacing with " ".
Change History (6)
comment:1 Changed 12 years ago by
Owner: | set to Douglas Hays |
---|---|
Summary: | Removing words in a dijit.form.Textarea will remove spaces in the underlying html textarea → TextArea: Removing words in a dijit.form.Textarea will remove spaces in the underlying html textarea |
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.3 |
---|
comment:3 Changed 12 years ago by
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 12 years ago by
comment:6 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
Sounds like a simple fix. I'm not sure if there are other adverse affects though (i.e., if there are a bunch of spurious in other situations, that need to be removed.
Doug, could we avoid all the regex stuff by using innerText?