开发者

How to Restore default action a key once we have prevented it?

开发者 https://www.devze.com 2023-02-08 06:09 出处:网络
The problem I am facing is that i have prevented the default action of a key in a function using e.preventDefault();.

The problem I am facing is that i have prevented the default action of a key in a function using e.preventDefault();.

Late开发者_运维知识库r when I am done with that function how can I restore the default action of that key?


You could either remove your custom event handler or have a condition on it so that you don't prevent the default action once you no longer need it.

0

精彩评论

暂无评论...
验证码 换一张
取 消