Skip to content

Commit

Permalink
fix: Merge pull request #101 from TheAppchemist/hotfix/issue53
Browse files Browse the repository at this point in the history
Fix ngModel not working on multiple select
  • Loading branch information
rubyboy authored Sep 14, 2016
2 parents 7bc0e60 + b93c6e7 commit 53ca908
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
Binary file added src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/materialize-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class MaterializeDirective implements AfterViewInit,DoCheck,OnChanges,OnD
jQueryElement.on("change", e => {
if (!e.originalEvent || !e.originalEvent.internalToMaterialize) {
const event:any = document.createEvent("CustomEvent");
event.initCustomEvent("change",false,false,undefined);
event.initCustomEvent("input",false,false,undefined);
event.internalToMaterialize = true;
nativeElement.dispatchEvent(event);
}
Expand Down

0 comments on commit 53ca908

Please sign in to comment.