Openbravo Issue Tracking System - POS2
View Issue Details
0047113POS2Corepublic2021-06-14 11:362021-09-22 15:25
aferraz 
jarmendariz 
normalmajorhave not tried
closedfixed 
5
 
 
No
0047113: Not possible to filter a grid inside a dialog
When having a filterable grid inside a dialog, it is not possible to use the filter: when you click on the filter, the dialog is automatically closed.

The problem is in following line: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blame/master/web-jspack/org.openbravo.core2/src/hooks/useEditNumber/useEditNumber.js#L263 [^]
Create a filterable grid component inside a dialog, like this one: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/524/diffs#a5c51f8ccf131ac2d08a4a1257fac492d664e4e2_0_48 [^]
Click on the filter and check the dialog is closed.
No tags attached.
related to defect 0047142 closed hernan-dp Input focus doesn't work properly with Grid popover 
depends on backport 0047119TAP closed jarmendariz Not possible to filter a grid inside a dialog 
Issue History
2021-06-14 11:36aferrazNew Issue
2021-06-14 11:36aferrazAssigned To => platform
2021-06-14 11:36aferrazTriggers an Emergency Pack => No
2021-06-14 13:33guilleaerResolution time => 1625608800
2021-06-14 13:33guilleaerStatusnew => acknowledged
2021-06-14 13:33guilleaerStatusacknowledged => scheduled
2021-06-14 13:33guilleaerStatusscheduled => acknowledged
2021-07-09 12:39jarmendarizAssigned Toplatform => jarmendariz
2021-07-12 09:29hgbotNote Added: 0130365
2021-07-12 14:12jarmendarizRelationship addedrelated to 0047142
2021-07-14 15:39dmiguelezResolution time1625608800 => 1628028000
2021-07-15 13:51jarmendarizStatusacknowledged => scheduled
2021-08-06 11:33dmiguelezResolution time1628028000 => 1629410400
2021-09-22 15:25hgbotResolutionopen => fixed
2021-09-22 15:25hgbotStatusscheduled => closed
2021-09-22 15:25hgbotNote Added: 0131974
2021-09-22 15:25hgbotNote Added: 0131975

Notes
(0130365)
hgbot   
2021-07-12 09:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/587 [^]
(0131974)
hgbot   
2021-09-22 15:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 9b3448723f10feeec3fe19c3a4f0372d23b7e57a
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 2021-09-22T09:30:41+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/9b3448723f10feeec3fe19c3a4f0372d23b7e57a [^]

Fixed ISSUE-47113: Cannot focus an input within a dialog in a screen with keypad.

Added a condition in focusIn event handler to check that the focused input is the same
input we linked to the keypad. If this condition is not checked, focusing to a different
input can enable the keypad, which is not desired. And if this input is in another view
like a dialog, this causes the dialog to close, making the input unusable.

---
M web-jspack/org.openbravo.core2/src/hooks/useEditNumber/useEditNumber.js
---
(0131975)
hgbot   
2021-09-22 15:25   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/587 [^]