When I remove a term from the dropbox the select dropdown disappears (all you see is the add button). If you then try to remove a second term from the dropbox there is a javascript error generated:
"fullSelection has no properties"
hierarchical_select.js (line 257)

CommentFileSizeAuthor
#5 sc1.png11.11 KBKat_Sweden
#5 sc2.png10.22 KBKat_Sweden
#5 sc3.png87.5 KBKat_Sweden

Comments

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

Which browser? I can't reproduce this issue in Firefox nor Safari, nor Internet Explorer..

Kat_Sweden’s picture

Firefox v2.0.0.12. We are using the latest version of the hierarchical select module. Did you want a screenshot of the behaviour I'm seeing?

wim leers’s picture

No, I believe you ;) I do want the exact steps to reproduce this. Don't forget to post your precise Hierarchical Select settings!

wim leers’s picture

Please post these things as soon as you can. I want HS 2.1 with all bugfixes to be out there ASAP, and this bug should be fixed as well.

Kat_Sweden’s picture

StatusFileSize
new87.5 KB
new10.22 KB
new11.11 KB

Thanks Wim :)

I've attached 3 screenshots.
sc1.png - shows the three terms selected. The limit is set to 3.

sc2.png - shows what happens when you remove one term, the select dropdown disappears

sc3.png - shows what happens when you remove a second term. There is a javascript error and the browser hangs.

The select is set dynamically using the form_alter hook:

$form['taxonomy'][20]['#weight'] = 5;
$form['taxonomy'][20]['#type'] = 'hierarchical_select';
$form['taxonomy'][20]['#hierarchical_select_settings'] = array(
'module' => 'taxonomy',
'save_lineage' => FALSE,
'enforce_deepest' => FALSE,
'params' => array(
'vid' => 20,
),
'animation_delay' => 400,
'dropbox_title' => t('These are the terms you selected'). ':',
'dropbox_limit' => 3,
);

if you need anymore info please let me know

wim leers’s picture

Assigned: Unassigned » wim leers

I'm afraid I can't reproduce this… It's also almost impossible for the dropdowns to disappear. Please make sure that you have removed the files for Hierarchical Select 1 properly, and that you have overwritten previous HS 2 files too.

Kat_Sweden’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Thanks for looking into this Wim and apologies for not responding sooner. I haven't been able to work out what is causing the issue, I've made sure the older HS files have all been removed and this hasn't helped.

We have removed it for now due to time constraints (the site is about to go live) but are keen to use it after go-live so I'll try implementing it again at a later date.