add onRowClick to components updating state

This commit is contained in:
Peter Clement 2025-01-24 16:03:49 +00:00
parent 0ac2f882e7
commit 4b7270a855
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@
): ComponentUsingState[] => {
let foundComponents: ComponentUsingState[] = []
const eventHandlerProps = ["onClick", "onChange"]
const eventHandlerProps = ["onClick", "onChange", "onRowClick"]
eventHandlerProps.forEach(eventType => {
const handlers = component[eventType]
@ -164,6 +164,7 @@
if (!stateKey || !$selectedScreen?.props) {
return
}
console.log($selectedScreen.props)
componentsUsingState = findComponentsUsingState(
$selectedScreen.props,
stateKey