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

ui5-avatar: click event triggler twice when it's interactive

Open JosephineSu opened this issue 5 years ago • 6 comments

Describe the bug When using avatar, setting the value of interactive prop to "true" directly in avatar component, it always triggler twice. In our app, we want to open another tab in window once user click avatar. But actually it will open two new tabs. To reproduce Steps to reproduce the behavior:

  1. Go to "Goals" 2.select instance: "MLT - Demo for target-baseline and tb buildin"
  2. select goal: "test cgrant"
  3. click avatar in "AlignUp" in the lower right conner.

Expected behavior A clear and concise description of what you expected to happen.

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)

Log output / Any errors in the console

{...}

Organization: (if applicable)

Priority: (optional) (Low, Medium, High or Very High)

Setting priority would indicate the importance of the issue and would help the process of dispatching and processing.

To set the appropriate priority, you need to consider the impact and if the issue: High

  • Breaks entire application or system - High and Very High
  • Is accessibility one (Screan Reader, Keyboard Handling) - Medium and High
  • Is functional one and makes a single component unusable - Medium and High
  • Is visual, styling one - Low and Medium

Note: the priority would be re-evaluated by the issue processors, according to the project internal criterias

Business impact: (mandatory for "Very High") Hign

JosephineSu avatar Mar 15 '21 05:03 JosephineSu

The avatar indeed fires the click event twice.

However, with proper debouncing the impact of this behaviour on the application side could be significantly improved.

d3xter666 avatar Mar 16 '21 06:03 d3xter666

Hi @d3xter666 , May I know when will this issue be resolved?

JosephineSu avatar Mar 17 '21 02:03 JosephineSu

Hi @JosephineSu the issue is dispatched to the responsible team. They are processing the issues by priority For example, these issues, also filed by SFSF, are before the current one https://github.com/SAP/ui5-webcomponents/issues/2880 https://github.com/SAP/ui5-webcomponents/issues/2910

When you file an issue, a bug, nobody can say when the issue will be resolved, however we make our best to fix them as soon as possible. It's just that this is not the only issue.

@SAP/ui5-webcomponents-topic-p could you take a look of the issue.

ilhan007 avatar Mar 17 '21 09:03 ilhan007

Ok, got it. Thank you.

JosephineSu avatar Mar 17 '21 09:03 JosephineSu

Hi @JosephineSu the issue will be included in 0.29.10 and 0.31.2 on 29-30 March

ilhan007 avatar Mar 23 '21 08:03 ilhan007

thanks, Nicely done!

JosephineSu avatar Mar 26 '21 08:03 JosephineSu