html - Prevent scroll in textbox -


if textbox happens focused , use scroll within it, page scroll gets bugged. in other words, looks scrolling within textbox rather page, causes me have reload page if want remove bug.

the work around have once textbox focused , want scroll page have click body of page unfocus. not every user know issue , cause page scroll bug. there way prevent scroll on textbox? not sure feature called.

fyi: tried bug scroll still happens

textbox {     position: fixed;     white-space: nowrap;     overflow: hidden; } 

jsfiddle https://jsfiddle.net/nmbga0nu/3/

it not run code in snippet shows css. using asp.net textbox/label shouldn't affect why scroll happens. has css or bootstrap.

try overflow: hidden; on textbox , let me know if worked.

you post code can have context.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -