message: regression: fix on dispatch action
diff: @@ -115,7 +115,8 @@ export const useUiKitState: <TElement extends UiKit.ActionableElement>(
  [loading, setLoading, error, value]
  );
  - if (context === UiKit.BlockContext.FORM) {
  + console.log(`context`, context);
  +
  if (
  rest.type === 'plain_text_input' &&
  Array.isArray(rest?.dispatchActionConfig) &&
  @@ -125,16 +126,12 @@ export const useUiKitState: <TElement extends UiKit.ActionableElement>(
  }
  if (
  - Array.isArray(rest?.dispatchActionConfig) &&
  - rest.dispatchActionConfig.includes('on_item_selected')
  - ) {
  - return [result, actionFunction];
  - }
  - }
  -
  - if (
  - context &&
  - [UiKit.BlockContext.SECTION, UiKit.BlockContext.ACTION].includes(context)
  + (context &&
  + [UiKit.BlockContext.SECTION, UiKit.BlockContext.ACTION].includes(
  + context
  + )) ||
  + (Array.isArray(rest?.dispatchActionConfig) &&
  + rest.dispatchActionConfig.includes('on_item_selected'))
  ) {
  return [result, actionFunction];
  }
  