While going through this example I noticed that the descriptive text is wrong, and contains a small typo.
It says:
In a javascript environment, the "Choose" button next to the select control if displayed; in a non-js environment it is hidden by the module CSS.
But this is the opposite of what really happens - the choose button is only shown when Javascript is disabled (I confirmed this by turning mine off and refreshing). Also that "if displayed" should read "is displayed".
Patch for these two little changes attached. I also made a 7.x backport, will attach that too in a comment.
Comments
Comment #1
rfayThanks so much! This is deferred because 8.x doesn't pass tests. I'm going to try it on D7.
Comment #2
rfayOP patch again, for D7
Comment #3
damien_vancouver commentedAh that's why it didn't test! I was patiently waiting. ;)
I made one specifically against 7. I see the 8.x one passed anyway, but might as well attach this one too. Thanks!
Comment #4
rfayCommitted to D7, http://drupalcode.org/project/examples.git/commitdiff/da172b7
Thanks so much!