Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

handling tabs, and select box update, preserve option order in select box #45

Closed
wants to merge 3 commits into from

Conversation

dgm
Copy link

@dgm dgm commented Jul 22, 2011

A couple of changes I've made while integrating with KeyTable:

0ca8b7f hitting tab can either escape or submit, and hitting enter on a select also submits.

39b77de removed extra loop from logic that sets the selected item. It works in IE for me, despite what the comment says.

I want to simplify the select code to make way for working on your ticket #24... allowing the json list of options be either a hash (unordered) or keep the order given by using an array of arrays.

a3c0435 allows for array of arrays to preserve option order.

If you can show me that removing the loop doesn't work in IE, the other option is to just store the option in a variable and then set it; I still don't think another loop is needed.

dgm added 3 commits July 17, 2011 12:56
…o be overridden, to either escape or submit the form.

Also allow the enter key to submit the form if no submit button is present, on a select input.
@NicolasCARPi
Copy link
Owner

Hello,

Thank you for your contribution. I didn't include the tab stuff because it was not working in my hands. I removed the extra loop. I didn't include the 3rd thing. Please make a new PR with just this change if it's still needed/wanted.

NicolasCARPi added a commit that referenced this pull request Dec 19, 2017
@dgm
Copy link
Author

dgm commented Dec 19, 2017

It's been 6 years, I don't even remember what I needed it for!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants