codecombat / treema

jQuery plugin that generates HTML interfaces to edit JSON data defined by json-schema.
http://codecombat.github.io/treema/
MIT License
152 stars 36 forks source link

Defaulted boolean fields can get into a weird focus-absorbing selected state #44

Open nwinter opened 9 years ago

nwinter commented 9 years ago

If I have a defaulted boolean Treema like either of these:

screenshot 2014-09-16 11 22 20

If I click on the key (exists) to select it:

screenshot 2014-09-16 11 22 31

Then press tab (which will also happen whenever tabbing through fields and hitting a defaulted boolean value), I get into this weird state:

screenshot 2014-09-16 11 22 39

Now pressing tab (or anything other than enter, t, or f) will have no effect. Also, I can't get rid of that state by clicking anywhere except the value (not even the key or another Treema). It also continues to absorb keypresses. For example, I can't type a commit message in here because that state is still absorbing all focus:

screenshot 2014-09-16 11 23 41