Skip to content

Commit

Permalink
Bug #40: Fixed dropDownList reset after insert item.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbraganca committed May 17, 2015
1 parent 7299ad6 commit 90f842a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ yii2-dynamicform change Log

dev-master
----------
- Bug #40: Fixed dropDownList reset after insert item.
- Enh #25: Added enhancements to better support for nested widgets.
- Enh #24: Added support for "jquery.inputmask". It only works with Yii 2.0.4 or higher.
- Enh: Remove "error/success" class css template to be cloned.
Expand Down
2 changes: 2 additions & 0 deletions src/assets/yii2-dynamic-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
}

$(this).prop('checked', false);
} else if($(this).is('select')) {
$(this).find('option:selected').removeAttr("selected");
} else {
$(this).val('');
}
Expand Down
Loading

0 comments on commit 90f842a

Please sign in to comment.