| Summary: | [Combo] selectionLength reported as NaN, leading to immediate crash | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | tbuschto |
| Version: | 1.5 | ||
| Target Milestone: | 1.5 M6 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
Seems to be a Firefox only issue, webkit and ie are fine. Also, other combos are fine, perhaps its because they have no content set? Fixed in CVS HEAD. Not sure why it wasn't a problem before, but BasicText.js (formaly TextField.js) returned undefined for selectionStart if the value of the input element is "" in firefox. Before, there was a check for undefined in TextUtil.js#_handleSelectionChange for both selectionStart and selectionLength. yes, but that check still exists somewhere else and was not related to combo, which has its own check. Only THAT check doesnt work because the value is NaN, not undefined. Probably it was undfined before for some reason... |