Commit 4ab9d0d
Fix SmartActionsDropdown to execute actions immediately on click
Summary:
The SmartActionsDropdown context menu was requiring two clicks to execute an action: one click to select it in the dropdown, then another click on the main button to actually run it. This was inconsistent with the old SmartActionsMenu behavior where clicking any action immediately executed it.
The fix adds `runSmartAction()` and `bumpSmartAction()` calls to the context menu's onClick handler, so actions execute immediately when selected from the dropdown - matching user expectations for context menus and the behavior of the legacy SmartActionsMenu.
Reviewed By: nsblake
Differential Revision: D92887268
fbshipit-source-id: db804da9ccfd78b6822319e995ee5386641c14b01 parent 0878337 commit 4ab9d0d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
0 commit comments