File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/main/src/webComponents/ShellBar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import ShellBarDomRef from './ShellBarDomRef.json';
33
33
34
34
### Recipe: How to open a popover on ShellBarItem click?
35
35
36
- To open a popover with the ` ShellBarItem ` you can use the ` targetRef ` property of the ` onItemClick ` event.
36
+ To open a popover with the ` ShellBarItem ` you can use the ` targetRef ` property of the ` onClick ` event.
37
37
38
38
``` jsx
39
39
const ShellBarComponent = () => {
@@ -44,7 +44,7 @@ const ShellBarComponent = () => {
44
44
return (
45
45
<>
46
46
< ShellBar>
47
- < ShellBarItem onItemClick = {handleShellBarItemClick} icon= " add" text= " add" / >
47
+ < ShellBarItem onClick = {handleShellBarItemClick} icon= " add" text= " add" / >
48
48
< / ShellBar>
49
49
< Popover ref= {popoverRef}> Hello there! < / Popover>
50
50
< / >
You can’t perform that action at this time.
0 commit comments