You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
Try to retrieve the value of input box in the submit handler: const id = data.view.state.'block-id'.'action-id'; // here data is IUIKitViewSubmitIncomingInteraction
If you don't change the initialValue of the input box you will get id as undefined, but if you even change a character in it it will work fine
PS
Expectation:
Must get value even if the input box has unchanged initialValue
The text was updated successfully, but these errors were encountered:
What?
When I am trying to read a value from IUIKitViewSubmitIncomingInteraction.IUIKitSurface.state:
Steps to reproduce?
Create a block
const block: InputBlock = { type: "input", label: { type: "plain_text", text: labelText, }, element: { type: "plain_text_input", placeholder: { type: "plain_text", text: 'Enter your ID', }, appId: 'app-id, blockId: 'block-id', actionId: 'action-id', initialValue: '12345' }, };
Use the above block in UIKitSurfaceType.MODAL
Try to retrieve the value of input box in the submit handler:
const id = data.view.state.'block-id'.'action-id'; // here data is IUIKitViewSubmitIncomingInteraction
If you don't change the initialValue of the input box you will get id as undefined, but if you even change a character in it it will work fine
PS
Expectation:
Must get value even if the input box has unchanged initialValue
The text was updated successfully, but these errors were encountered: