Skip to content

Commit

Permalink
Fix press enter invoice total
Browse files Browse the repository at this point in the history
  • Loading branch information
soker90 committed Apr 5, 2023
1 parent dfc8a24 commit a02e5be
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# [3.3.2] - 04/04/2023
- Al modificar el total de una factura y pulsar intro, recargaba la página y no actualizaba

# [3.3.1] - 29/03/2023
- Corregida página de cheques, antes solo mostraba los tres uĺtimos cheques siempre

Expand Down
37 changes: 13 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Eduardo Parra Mazuecos",
"email": "eduparra90@gmail.com",
"licence": "MIT",
"version": "3.3.1",
"version": "3.3.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
9 changes: 6 additions & 3 deletions src/components/Modals/EditTotalsModal/EditTotalsModalView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ const EditTotalsModalView = ({

/**
* Handle press enter key
* @param {string} key
* @param {Event} event
* @private
*/
const _handleKeyPress = ({ key }) => {
if (key === 'Enter') _handleSubmit()
const _handleKeyPress = event => {
if (event.key === 'Enter') {
event.preventDefault()
_handleSubmit()
}
}

/**
Expand Down

1 comment on commit a02e5be

@vercel
Copy link

@vercel vercel bot commented on a02e5be Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

arroyo-erp-client – ./

arroyo-erp-client-git-master-soker90.vercel.app
arroyo-erp-client.vercel.app
arroyo-erp-client-soker90.vercel.app

Please sign in to comment.