Bug #17980
closed
select wizard doesn't work in Safari 3.0.4 on Mac
Added by BIDAU almost 17 years ago.
Updated over 14 years ago.
Description
In TCA :
'wizards' => array (
'select' => array (
'type' => 'select',
'items' => array (
array('my test1', 'my test1'),
array('my test2', 'my test2'),
)
),
),
It's works on older Safari version and in Firefox but not in Safari 3.0.4 (Mac)
(issue imported from #M7123)
Files
Still not workin with TYPO3 4.2.3, Safari 3.2.1
When you do a choice in the select box, the value is transfered to the input text but the value is lost when you click anywhere on the page.
The problem is Safari fire onchange event anytime the selection changes after being focused. So when you change the selectedIndex from within the onchange handler, it will have focus and hence fire again.
To workaround the problem, you can tell the dropdown to blur itself before changing the index. This will prevent it from firing the onchange again.
class.t3lib_tceforms.php, line 3717 :
Change
$sOnChange = $assignValue.';this.selectedIndex=0;'.implode('',$fieldChangeFunc);
to
$sOnChange = $assignValue.';this.blur();this.selectedIndex=0;'.implode('',$fieldChangeFunc);
Hey,
I am running Safari here, can you send me a screenshot or a direction on how to reproduce this behaviour? I just don't get it, I guess...,
Ah, got it, it's in the wizards... :)
Will report this one to the core list! Thanks for the advice.
... now waiting for a second +1 in the core list.
Also available in: Atom
PDF