简体   繁体   English

无法取消选择HTML 5范围滑块输入

[英]Cannot deselect HTML 5 Range Slider Input

I am not sure if this is a bug in Chrome but for some reason when I use a html 5 range input I cannot deselect it. 我不确定这是否是Chrome中的错误,但是由于某些原因,当我使用html 5范围输入时,无法取消选择它。 Even when I move my cursor away and let go of the button on mouse the slider continues to follow mouse movement and I cannot set the slider value. 即使我将光标移开并放开鼠标上的按钮,滑块也会继续跟随鼠标移动,因此无法设置滑块值。 Even if I tab to the next input I still have this issue This example is from W3Schools . 即使我跳到下一个输入,我仍然遇到这个问题。此示例来自W3Schools I tried it on my android device and I don't have this same issue. 我在我的android设备上尝试过,但没有相同的问题。 Is there any workarounds, I specifically need to ensure it works with Angularjs. 有没有解决方法,我特别需要确保它与Angularjs一起使用。

<!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp" method="get">
Points: 0<input type="range" name="points" min="1" max="10">10
<input type="submit">
</form>

<p><b>Note:</b> type="range" is not supported in Internet Explorer 9 and earlier versions.</p>

</body>
</html>

此行为是由于Chrome扩展字典气泡:即时字典导致的,一旦禁用它,则Slider会按预期运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM