If you press enter in the 'Collected from patron' field it adds the first item listed under the 'Items for purchase' section to 'This sale'.
Created attachment 99951 [details] [review] Bug 24540: Prevent add button being triggered on enter This patch prevents the add button being triggered by hitting return from inside the collected from patron form input.
Created attachment 99952 [details] [review] Bug 24540: Prevent add button being triggered on enter This patch prevents the add button being triggered by hitting return from inside the collected from patron form input.
Created attachment 100004 [details] [review] Bug 24540: Prevent add button being triggered on enter This patch prevents the add button being triggered by hitting return from inside the collected from patron form input. Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Created attachment 100097 [details] [review] Bug 24540: Prevent add button being triggered on enter This patch prevents the add button being triggered by hitting return from inside the collected from patron form input. Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Nice work everyone! Pushed to master for 20.05
not pushed to 19.11.x due to dependencies