I have an INPUT tag on the web page I currenty developing.
This input field observes 'onkeydown' event and handler for this detects keyCode for ENTER.
After that it replaces itself with SPAN tag.
Simple and clear.
But sometimes (not frequently) after pressing ENTER and making SPAN replacement it fires also 'onclick' event. And it fires this on an delete BUTTON (image) which stays far from that INPUT/SPAN place on this page.
Event handler for that delete BUTTON shows that this event object has negative values for offsetX and offsetY properties.
Could you give me any suggestions or keywords, why this 'onclick' takes place ?
Maybe this caused by tabIndex issue ?