Hi,

another unexpected behaviour (to me):

In the playground example below, if you edit one of the cells in the 1st
column and "erase" the value (with backspace) and then press ENTER, the
value is indeed removed (invisible). However, if you then edit the cell
again, it actually contains NaN (not a number).

I'd expect either NaN not to be hidden or, better, to actually have no value
at all (as if it was a null value).

I fixed the problem for myself with an "extension" derived from
qx.ui.table.celleditor.TextField with the following change:


-      if (typeof cellEditor.originalValue == "number") {
-        value = parseFloat(value);
-      }

+      if (typeof cellEditor.originalValue == "number") {
+          if (value != null) {
+               value = parseFloat(value);
+          }
+      }

Wouldn't that make sense in AbstractField?

Cheers,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to