【问题标题】:X-editable data-type=number causes popover to be in the wrong position.X-editable data-type=number 导致弹出框位置错误。
【发布时间】:2017-11-15 18:29:30
【问题描述】:

当我将 x 可编辑元素呈现为 type=text 时,

<a data-csrf="" data-pk="2031" data-role="x-editable" data-type="text" data-url="./ajax/update/" data-value="" href="#" id="account_budget" name="account_budget" class="editable editable-click editable-empty" data-original-title="" title="">Empty</a>

弹出框的位置正确。

但是,当我将其呈现为数字时,

<a data-csrf="" data-pk="2031" data-role="x-editable" data-step="any" data-type="number" data-url="./ajax/update/" data-value="" href="#" id="account_budget" name="account_budget" class="editable editable-click editable-empty editable-open" data-original-title="" title="" aria-describedby="popover90342">Empty</a>

弹出框显示在错误的位置。

有人见过这个问题吗?

【问题讨论】:

  • 是的,同样的问题……还没有找到解决办法

标签: jquery twitter-bootstrap x-editable


【解决方案1】:

使用数据步=“0.01”。 例如:

<a data-csrf="" data-pk="2031" data-role="x-editable" data-step="0.01" data-type="number" data-url="./ajax/update/" data-value="" href="#" id="account_budget" name="account_budget" class="editable editable-click editable-empty editable-open" data-original-title="" title="" aria-describedby="popover90342">Empty</a>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-05
    • 2014-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多