You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Slack Block的plain_text_input在Android移动端无法输入,iOS端正常

Slack Android端plain_text_input无法输入的解决方案

针对你遇到的Android端无法在plain_text_input中输入的问题,可以尝试以下几种解决方式:

  • 给input块添加block_id
    Slack Android客户端对没有明确block_id的input组件可能存在兼容性问题,虽然桌面和iOS端可以正常工作,但Android需要通过block_id来关联输入元素。修改你的input块,添加唯一的block_id字段:

    [
        {
            "type": "input",
            "block_id": "email_input_block", // 添加这一行
            "element": {
                "type": "plain_text_input",
                "action_id": "plain_text_input-action"
            },
            "label": {
                "type": "plain_text",
                "text": ":slightly_smiling_face: insert your E-mail",
                "emoji": true
            }
        },
        {
            "type": "actions",
            "block_id": "block_id_Sys_airp",
            "elements": [
                {
                    "type": "button",
                    "text": {
                        "type": "plain_text",
                        "text": "Send"
                    },
                    "action_id": "approve_request",
                    "value": "btn_Sys_airp_OK"
                }
            ]
        }
    ]
    
  • 检查客户端版本
    确认Slack Android客户端是最新版本,旧版本可能存在plain_text_input的交互bug,更新到最新版后再测试。

  • 简化布局排查冲突
    暂时移除actions块,只保留input块发送到频道,测试Android端是否能正常输入。如果可以,再逐步添加按钮组件,排查是否存在元素间的交互冲突。

内容的提问来源于stack exchange,提问作者GoldFig

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 08:02:05