Skip to content

Commit 5927797

Browse files
Form animal id flakiness (#655)
* Add blur handler
1 parent 158c37f commit 5927797

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ehr/resources/web/ehr/form/field/AnimalField.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ Ext4.define('EHR.form.field.AnimalField.js', {
1818
this.on('change', function(field, val, oldVal){
1919
this.fireEvent('animalchange', val);
2020
}, this, {buffer: 200});
21+
22+
// Verify one more time when the field loses focus as change handler can be a little flaky
23+
this.on('blur', function(field){
24+
this.fireEvent('animalchange', field.value);
25+
}, this);
2126
},
2227

2328
//NOTE: modules can override this method to enfore alternate rules

0 commit comments

Comments
 (0)