Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0047128 | POS2 | POS | public | 2021-06-14 18:58 | 2023-09-29 11:41 |
|
Reporter | dmiguelez | |
Assigned To | | |
Priority | urgent | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0047128: Error when focusing on the first element of a Form if this element is a Combo |
Description | When the first element of a Form is a Combo, an error is thrown when trying to focus on it. |
Steps To Reproduce | 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
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | 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 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-06-14 18:58 | dmiguelez | New Issue | |
2021-06-14 18:58 | dmiguelez | Assigned To | => Retail |
2021-06-14 18:58 | dmiguelez | Triggers an Emergency Pack | => No |
2021-06-15 03:51 | prakashmurugesan88 | Assigned To | Retail => prakashmurugesan88 |
2021-06-15 03:51 | prakashmurugesan88 | Status | new => scheduled |
2021-06-15 09:27 | dmiguelez | Resolution time | => 1624917600 |
2021-06-15 09:27 | dmiguelez | Note Added: 0129503 | |
2021-06-16 18:02 | dmiguelez | Assigned To | prakashmurugesan88 => jarmendariz |
2021-06-16 18:04 | dmiguelez | Assigned To | jarmendariz => platform |
2021-06-16 18:07 | dmiguelez | Status | scheduled => acknowledged |
2021-06-16 18:09 | jarmendariz | Note Added: 0129579 | |
2021-06-28 13:08 | cberner | Assigned To | platform => cberner |
2021-06-28 13:08 | cberner | Status | acknowledged => scheduled |
2021-06-29 13:23 | cberner | Note Added: 0129939 | |
2021-07-01 16:03 | cberner | Note Edited: 0129939 | bug_revision_view_page.php?bugnote_id=0129939#r22841 |
2021-07-09 11:05 | cberner | Note Added: 0130348 | |
2021-07-09 11:05 | cberner | Assigned To | cberner => platform |
2021-07-09 11:05 | cberner | Status | scheduled => acknowledged |
2021-07-09 11:05 | cberner | Resolution time | 1624917600 => |
2021-07-09 11:05 | cberner | Type | defect => design defect |
2022-01-07 10:51 | prakashmurugesan88 | Relationship added | has duplicate 0048290 |
2022-01-19 10:52 | ablasco | Note Added: 0134377 | |
2022-02-01 08:07 | alostale | Assigned To | platform => Triage Platform Base |
2022-08-25 10:04 | jorgewederago | Relationship added | has duplicate 0049495 |
2023-07-26 08:50 | guilleaer | Note Deleted: 0134377 | |
2023-09-29 11:39 | Daria_Sh | Status | acknowledged => scheduled |
2023-09-29 11:39 | Daria_Sh | Assigned To | Triage Platform Base => |
2023-09-29 11:41 | Daria_Sh | Note Added: 0155382 | |
2023-09-29 11:41 | Daria_Sh | Status | scheduled => closed |
2023-09-29 11:41 | Daria_Sh | Resolution | open => fixed |
Notes |
|
|
Not backport for TAP is required as of now |
|
|
|
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.
|
|
|
|
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. |
|
|
|
It was clarified with Guillermo Alvarez that issue is fixed in scope of other related issues |
|