ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-input in the ui5-shellbar, pressing "tab" key causes a fatal exception

Open codefactor opened this issue 6 years ago • 1 comments

Describe the bug Using ui5-shellbar, click on the search button and then press "tab" key - this throws a fatal uncaught exception (which in react based pages in dev mode causes the page to disappear to show the error).

To reproduce Steps to reproduce the behavior:

  1. use 0.0.0-c6d8872f3 of ui5-webcomponents-fiori
  2. have a ui5-shellbar with a ui5-input slotted inside
  3. click the search button, focus is on the input, press "tab" key
  4. see the error in the logs

Isolated example https://codesandbox.io/s/ui5-webcomponents-cpw59 Couldn't get it to work

Expected behavior Pressing tab key should just move focus to the body of the page.

Screenshots If applicable, add screenshots to help explain your problem.

Context

  • UI5 Web Components version
  • OS/Platform: {...}
  • Browser (if relevant): {...}
  • Other information: {...}

Affected components (if known)

ui5-shellbar, ui5-input

Log output / Any errors in the console

Input.js:471 Uncaught TypeError: Cannot read property 'contains' of null
    at HTMLElement._onfocusout (Input.js:471)
    at EventPart.handleEvent (parts.ts:505)
    at HTMLDivElement.EventPart.__boundHandleEvent (parts.ts:463)

codefactor avatar Mar 19 '20 00:03 codefactor

Hi @codefactor

This issue is already resolved in master branch with my latest PR

Best regards, Filip

fifoosid avatar Mar 19 '20 08:03 fifoosid