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

limit choices doesnt work under safari #53

Open kenstack opened 7 years ago

kenstack commented 7 years ago

Ive been trying to use Treema under phonegap for an iphone app - I have found that both phonegap (based on WKwebkit and therefore safari) and desktop safari on Mac OS10 seem to break the limitChoices function. Ie if a schema is defined - say a number - and you enter instead some letters and press return instead of rejecting the input the entire node disappears. You can verify this via the demos on http://codecombat.github.io/treema/demo.html - go to the Custom Node demo and instead of 3 or 4 as the coordinates, enter a few letters and hit return - the entire node disappears. BTW this is a really useful plugin thank you.