【问题标题】:Flask Input fields do not allow text input in SafariFlask Input 字段不允许在 Safari 中输入文本
【发布时间】:2021-03-29 21:21:12
【问题描述】:

我正在使用烧瓶表单来创建表单页面。输入字段适用于 Chrome 和 Edge。但不能在 safari 中工作(无法点击输入文本)。

以下是检查器 HTML:

这是 CSS:

我一直在努力让它发挥作用,我试过: Cannot write into input field on safariInput field iOS Safari bug — Can't type in any text

两者都没有帮助。有什么可能出错的想法吗?

这是我用来创建表单的代码示例:

thing_name = StringField(
        'Name',
        description='Name of the thing',
        validators=[
            InputRequired('Please specify the name of the thing'),
        ])

【问题讨论】:

    标签: css safari flask-wtforms


    【解决方案1】:

    问题在于表单名称。由于某种原因,它不能命名为title,更改名称解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2018-11-26
      • 2017-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多