I have put some search and email registration textboxes into a page and I can't click on the field to focus on it and enter text.
After some troubleshooting I discovered that the reason for this, is the main div, that includes the content. It has these rules:
<main id="main" class="site-main" onmousedown="return false;" onselectstart="return false;">
These restrictions were put there for discouraging stealing content. This prevents the user from focusing on the text-fields.
What would be the best way to keep the restriction for the main div, yet allow the user to click on the textboxes? Maybe just the onselectstart
is enough to prevent copy/paste and I can delete the onmousedown
parameter?
You can see the problem in this page