Skip to content

Commit c22a6ba

Browse files
committed
Enable error message when entering an item barcode without a patron barcode.
1 parent 0f149be commit c22a6ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Fix focus issue. Refs UICHKOUT-773.
1010
* Refactor away from react-intl-safe-html. Refs UICHKOUT-721.
1111
* Optional dependency `@folio/circulation` is out of date. Refs UICHKOUT-777.
12+
* Enable error message when entering an item barcode without a patron barcode. Refs UICHKOUT-770.
1213

1314
## [8.0.1](https://github.com/folio-org/ui-checkout/tree/v8.0.1) (2022-03-28)
1415
[Full Changelog](https://github.com/folio-org/ui-checkout/compare/v8.0.0...v8.0.1)

src/ScanItems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class ScanItems extends React.Component {
183183

184184
// https://github.com/final-form/react-final-form/blob/master/docs/faq.md#how-can-i-trigger-a-submit-from-outside-my-form
185185
triggerPatronFormSubmit = () => {
186-
const submitEvent = new Event('submit', { cancelable: true });
186+
const submitEvent = new Event('submit', { cancelable: true, bubbles: true });
187187
const form = document.querySelector('#patron-form');
188188
form.dispatchEvent(submitEvent);
189189
};

0 commit comments

Comments
 (0)