MCPcopy Create free account
hub / github.com/DTStack/molecule / onToolbarClick

Function onToolbarClick

src/components/search/input.tsx:47–51  ·  view source on GitHub ↗
(e, item)

Source from the content-addressed store, hash-verified

45 const textareaRef = useRef<HTMLTextAreaElement>(null);
46
47 const onToolbarClick = (e, item) => {
48 // toolbar click can trigger input focus
49 textareaRef.current?.focus();
50 props.onToolbarClick?.(item);
51 };
52
53 const getInfoClassName = (classname: string) => {
54 switch (classname) {

Callers 3

handleToolBarClickFunction · 0.85
explore.test.tsxFile · 0.85
handleToolbarClickFunction · 0.85

Calls 1

onToolbarClickMethod · 0.65

Tested by

no test coverage detected