Skip to content

Commit

Permalink
[Hotfix] Fixed issue with javascript change event and Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
kdunlap committed Feb 14, 2017
1 parent f53b3bd commit d753d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/medical/medical.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var prescriptionFeature = {
// triggered when an item is tabbed to completion
$(this).trigger("typeahead:selected", item);
}
).on("change", function(event) {
).on("input", function(event) {
// triggered when text is entered that is not part of the autocomplete
var $medicationID = $(this).closest(".prescriptionRow").find(".medicationID");
$medicationID.val("");
Expand Down
2 changes: 1 addition & 1 deletion public/js/pharmacy/pharmacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var prescriptionFeature = {
$medicationID.val(item.id);
}).on('typeahead:autocompleted', function (event, item, data) {
$(this).trigger("typeahead:selected", item);
}).on("change", function () {
}).on("input", function () {
var $medicationID = $(this).closest(".prescriptionRow").find(".medicationID");
$medicationID.val(""); //Remove value if it is not one from typeahead
});
Expand Down

0 comments on commit d753d86

Please sign in to comment.