Permalink
Browse files

bug: checkDirty for MaterialTextfiled produced wrong result

  • Loading branch information...
MikeMitterer committed Jul 28, 2015
1 parent 2ee77fb commit 7935fab13e638c6e2b4b1fd4aa3360e3e4965249
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/src/components/MaterialTextfield.dart
@@ -225,7 +225,7 @@ class MaterialTextfield extends MdlComponent {
/// Check the dirty state and update field accordingly.
void _checkDirty() {
if (_relaxedInput.value && _relaxedInput.value.length > 0) {
if (_relaxedInput.value != null && _relaxedInput.value.isNotEmpty) {
element.classes.add(_cssClasses.IS_DIRTY);
} else {

0 comments on commit 7935fab

Please sign in to comment.