Skip to content

Commit

Permalink
Fix ngModel not working on multiple select
Browse files Browse the repository at this point in the history
  • Loading branch information
Melvin Musehani committed Sep 5, 2016
1 parent 2cf5ff5 commit b93c6e7
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 @@ -101,7 +101,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 b93c6e7

Please sign in to comment.