javascript - In IE & Mozilla, mouse can't move the cursor or select text in input fields -


i have scratching head week find root cause of problem:

i have input fields (<input type="text">); in ie have click 2 times in write , in mozilla works fine. if there text in it, takes 3 clicks write text in , same problem in mozilla. after this, can't move cursor or select text mouse. tab key works fine , cursor can moved arrow keys. same problem exists textarea.

in chrome, works fine. more information:

  1. the whole html in iframe
  2. the problem not in focusing. on single click, gets focused on double click only, cursor shown in input fields
  3. i can't modify or access element outside iframe. can modify code inside iframe
  4. the code big can't paste here
  5. problem exists <input type="text"> fields. using oi-select library. fields working fine.

before declare duplicate, here things have tried:

  1. i removed css element , reset inherited css not issue of css
  2. i not overriding mousedown function
  3. i tried focus on element inside iframe through jquery still problem there.
  4. i wrote time consuming tasks mentioned in answer, still no change in behaviour.
  5. i called ng-focus, ng-mousedown in elements test, functions in these events being fired properly.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -