Modus Icon: Event Name is iconClick
, not onClick
as shown in Storybook and clicking causes error
#2058
Closed
2 tasks done
Labels
bug
Something is wrong and needs to be addressed
external-request
Bugs and features reported by individuals from other teams in Trimble
priority:medium
Prioritization for this item is medium
Prerequisites
Describe the issue
Component creates
iconClick
eventBut Storybook shows it has having an
onClick
event that is emittedAnd when the icon is clicked it produces an error
This is caused by the icons onClick being set as
when it should be this at minimum to maintain the
this
context.Otherwise the context will be the icon from the icon map, not the modus-icon.
I am creating this ticket so I can work on it later.
Reduced test cases
In Storybook for MWC, navigate to the Icon component and click on the icon. Observer the javascript error in the dev console.
What operating system(s) are you seeing the problem on?
No response
What browser(s) are you seeing the problem on?
No response
What is the issue regarding ?
@trimble-oss/modus-web-components
What version of npm package are you using ?
v0.13.0
Priority
Medium
What product/project are you using Modus Components for ?
Modus
What is your team/division name ?
Modus
Are you willing to contribute ?
Maybe
Are you using Modus Web Components in production ?
No response
The text was updated successfully, but these errors were encountered: