Bug #17980
closedselect wizard doesn't work in Safari 3.0.4 on Mac
0%
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
Updated by BIDAU almost 16 years ago
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);
Updated by Benni Mack almost 16 years ago
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...,
Updated by BIDAU almost 16 years ago
You can test http://www.ensci.com/fileadmin/_temp_/testFor0007123.html
It explain the need of this.blur() javascript function to keep the value transfered by the wizard.
Updated by Benni Mack almost 16 years ago
Ah, got it, it's in the wizards... :)
Will report this one to the core list! Thanks for the advice.
Updated by Benni Mack almost 16 years ago
... now waiting for a second +1 in the core list.