Openbravo Issue Tracking System - POS2
View Issue Details
0054823POS2POSpublic2024-03-01 12:142024-03-01 12:15
Aaron_Alvarez 
Retail 
normalmajoralways
newopen 
5
 
 
No
0054823: Bug in MultiSelectorDialog related to loading and sorting async data
When using the MultiSelectorDialog and giving some async data the data will not appear until you search something and the 'dialogOnSearchInputChange' is launched.

I think this is because in the visibleRows and the dataSource there is no data and when this is executed it update the state and the dataSource 'rows'.

In the SSMS enviroment:

- Go to New Distribution Order Issue
- Open any MultiSelector

ERROR: There is now rows

- Type something to search and delete it
- The rows appear
I think this in the MultiSelectorDialog could be a solution. More tests are needed

  useEffect(() => {
    const a = () => {
      load({ rows });
      setVisibleRows(rows);
    };
    if (rows !== visibleRows) a();
    // eslint-disable-next-line react-hooks/exhaustive-deps
  }, [rows]);
No tags attached.
png Open-MultiselectorDialog.png (13,372) 2024-03-01 12:14
https://issues.openbravo.com/file_download.php?file_id=19512&type=bug
png

png Search-In-MultiselectorDialog.png (25,846) 2024-03-01 12:15
https://issues.openbravo.com/file_download.php?file_id=19513&type=bug
png
Issue History
2024-03-01 12:14Aaron_AlvarezNew Issue
2024-03-01 12:14Aaron_AlvarezAssigned To => Retail
2024-03-01 12:14Aaron_AlvarezFile Added: Open-MultiselectorDialog.png
2024-03-01 12:14Aaron_AlvarezTriggers an Emergency Pack => No
2024-03-01 12:15Aaron_AlvarezFile Added: Search-In-MultiselectorDialog.png

There are no notes attached to this issue.