mystix
4 Jul 2007, 11:51 PM
Tripled-checked this one to be sure i didn't make any silly custom includes by mistake :D
here's a drop-in test case
<html>
<head>
<title>Transformed <select> bug</title>
<link rel='stylesheet' href='resources/css/ext-all.css'>
<script src='adapter/ext/ext-base.js'></script>
<script src='ext-all-debug.js'></script>
<script>
Ext.onReady(function() {
Ext.get('transform').on('click', function() {
new Ext.form.ComboBox({transform: 'mySelect'});
})
});
</script>
</head>
<body>
<form id='testForm'>
<select id='mySelect'>
<option value='1'>one</option>
<option value='2'>two</option>
<option value='3'>three</option>
<option value='4'>four</option>
</select>
<input type="button" id="transform" value="Transform!">
</form>
</body>
</html>
[cause]: only transformed <select>s are affected because the block which does the transformation doesn't set allowDomMove to false.
[edit]
tested against 1.1b2 and latest 1.1 SVN
here's a drop-in test case
<html>
<head>
<title>Transformed <select> bug</title>
<link rel='stylesheet' href='resources/css/ext-all.css'>
<script src='adapter/ext/ext-base.js'></script>
<script src='ext-all-debug.js'></script>
<script>
Ext.onReady(function() {
Ext.get('transform').on('click', function() {
new Ext.form.ComboBox({transform: 'mySelect'});
})
});
</script>
</head>
<body>
<form id='testForm'>
<select id='mySelect'>
<option value='1'>one</option>
<option value='2'>two</option>
<option value='3'>three</option>
<option value='4'>four</option>
</select>
<input type="button" id="transform" value="Transform!">
</form>
</body>
</html>
[cause]: only transformed <select>s are affected because the block which does the transformation doesn't set allowDomMove to false.
[edit]
tested against 1.1b2 and latest 1.1 SVN