I had hierarchical select set up to allow creation of new levels, but the dropdown, with the needed "create new item" selection, was not showing up under terms that had no children. Correction; the dropdown does show up for the first selection on the list, the default selected when the page loads. Any subsequent selections lack the dropdown for the empty level.
fixed it in hierarchical_select.js, line 286. changed
if (value == 'none' || value.match(/^label_\d+$/) || optionClass == 'has-no-children') {
to
if (value == 'none' || value.match(/^label_\d+$/)) {
This may cause trouble elsewhere, but it works for my situation.
Comments
Comment #1
wim leersIndeed. I have regretted that performance optimization many times now: it caused a lot of regressions. This is just another one.
We really really need tests for HS.
Thanks for reporting!
Comment #2
wim leersSomebody else reported this with even more information, so I'm marking this a duplicate of that issue: http://drupal.org/node/298322. Should be fixed soon :)
P.S.: your work-around fixes the problem (good job! :)), but it removes the optimization completely. So I'm going to work on a better solution, but you made an excellent start.