Openbravo Issue Tracking System - POS2
View Issue Details
0047128POS2POSpublic2021-06-14 18:582023-09-29 11:41
dmiguelez 
 
urgentcriticalalways
closedfixed 
5
 
 
No
0047128: Error when focusing on the first element of a Form if this element is a Combo
When the first element of a Form is a Combo, an error is thrown when trying to focus on it.
Log in the Backend and go to the CRM Connector Configuration window
  - Select the record with the name 'Sample CRM Integration - Proxy'
  - In the API Property Tab select the record with API Key 'xCountry'
  - Set the 'Detail Sequence Number' as 1

Log in the FrontEnd and click on the customer button
Click on New Customer
It fails with the error: TypeError: Cannot read property 'focus' of null
No tags attached.
has duplicate defect 0048290 closed Retail JIRA 2512 - CRM: Can not focus a combobox field 
has duplicate defect 0049495 closed Retail CRM connector : error on React POS when changing fields order and putting COMBO BOX field first 
Issue History
2021-06-14 18:58dmiguelezNew Issue
2021-06-14 18:58dmiguelezAssigned To => Retail
2021-06-14 18:58dmiguelezTriggers an Emergency Pack => No
2021-06-15 03:51prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2021-06-15 03:51prakashmurugesan88Statusnew => scheduled
2021-06-15 09:27dmiguelezResolution time => 1624917600
2021-06-15 09:27dmiguelezNote Added: 0129503
2021-06-16 18:02dmiguelezAssigned Toprakashmurugesan88 => jarmendariz
2021-06-16 18:04dmiguelezAssigned Tojarmendariz => platform
2021-06-16 18:07dmiguelezStatusscheduled => acknowledged
2021-06-16 18:09jarmendarizNote Added: 0129579
2021-06-28 13:08cbernerAssigned Toplatform => cberner
2021-06-28 13:08cbernerStatusacknowledged => scheduled
2021-06-29 13:23cbernerNote Added: 0129939
2021-07-01 16:03cbernerNote Edited: 0129939bug_revision_view_page.php?bugnote_id=0129939#r22841
2021-07-09 11:05cbernerNote Added: 0130348
2021-07-09 11:05cbernerAssigned Tocberner => platform
2021-07-09 11:05cbernerStatusscheduled => acknowledged
2021-07-09 11:05cbernerResolution time1624917600 =>
2021-07-09 11:05cbernerTypedefect => design defect
2022-01-07 10:51prakashmurugesan88Relationship addedhas duplicate 0048290
2022-01-19 10:52ablascoNote Added: 0134377
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base
2022-08-25 10:04jorgewederagoRelationship addedhas duplicate 0049495
2023-07-26 08:50guilleaerNote Deleted: 0134377
2023-09-29 11:39Daria_ShStatusacknowledged => scheduled
2023-09-29 11:39Daria_ShAssigned ToTriage Platform Base =>
2023-09-29 11:41Daria_ShNote Added: 0155382
2023-09-29 11:41Daria_ShStatusscheduled => closed
2023-09-29 11:41Daria_ShResolutionopen => fixed

Notes
(0129503)
dmiguelez   
2021-06-15 09:27   
Not backport for TAP is required as of now
(0129579)
jarmendariz   
2021-06-16 18:09   
I think that this issue should be related to something in the BaseForm. There is the storybook "Platform/Form Inputs/ComboBox/Focus Using Ref" where we set the focus of the Select component programatically and works as expected.
(0129939)
cberner   
2021-06-29 13:23   
(edited on: 2021-07-01 16:03)
It seems to actually be an issue with material-ui Select inputRef focus function, sometimes it is not available when the component is created, and the focus function will not work in that case, resulting in the error here.

This is the issue where they fixed this: https://github.com/mui-org/material-ui/issues/21441 [^]

Problem is, it has been done in material-ui version 5, we're currently using 4.11.3. Not sure how we should proceed here, there seems to be a workaround using setTimeout, but after further testing it doesn't seem to work in our case.

(0130348)
cberner   
2021-07-09 11:05   
This issue requires waiting for material-ui update to version 5(which is currently in beta as of now), this will fix this issue.

It has been marked as design-defect and resolution time removed until further notice.
(0155382)
Daria_Sh   
2023-09-29 11:41   
It was clarified with Guillermo Alvarez that issue is fixed in scope of other related issues