- *
Try typing something in each input. See that the model only updates when you
- * blur off the input.
- *
- *
Now see what happens if you start typing then press the Escape key
+ *
Both of these inputs are only updated if they are blurred. Hitting escape should
+ * empty them. Follow these steps and observe the difference:
+ *
+ * - Type something in the input. You will see that the model is not yet updated
+ * - Press the Escape key.
+ *
+ * - In the first example, nothing happens, because the model is already '', and no
+ * update is detected. If you blur the input, the model will be set to the current view.
+ *
+ * - In the second example, the pending update is cancelled, and the input is set back
+ * to the last committed view value (''). Blurring the input does nothing.
+ *
+ *
+ *
+ *
*
*
*
*