[Bug]: Clicking action button not selecting action button when action button is inside action group. #3048
Closed
1 task done
Labels
bug
Something isn't working
Component: Action Button
Component: Action Group
help wanted
Extra attention is needed
Code of conduct
Impacted component(s)
sp-action-group, sp-action-button
Expected behavior
Clicking any action button should select it when they are child elements of action group.
Actual behavior
I’m trying to use sp-action-group component with sp-action-button as child components. When I try to select/click one of the sp-action-button, it calls handleClick event. Here, event.target is always span instead of parent sp-action-button. And, because of that target.value is always "undefined" and returns and does nothing. Is this the bug on SWC side? I have sp-action-group v0.12.9 and sp-action-button v0.10.12 installed. Slack conversion is here.
Screenshots
No response
What browsers are you seeing the problem in?
Chrome
How can we reproduce this issue?
No response
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
The text was updated successfully, but these errors were encountered: