Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2008-01-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bug.diff (4.63 KB) bug.diff Administrator Admin, 2009-01-08 16:03
0007123.patch (696 Bytes) 0007123.patch Administrator Admin, 2009-01-09 16:43
Actions #1

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);

Actions #2

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...,

Actions #3

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.

Actions #4

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.

Actions #5

Updated by Benni Mack almost 16 years ago

... now waiting for a second +1 in the core list.

Actions

Also available in: Atom PDF