http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252021-12-02T08:48:49ZRedmineWt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=369572021-12-02T08:48:49ZKorneel Dumonkorneel@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>InProgress</i></li><li><strong>Assignee</strong> set to <i>Korneel Dumon</i></li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=369742021-12-02T09:36:53ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>Apparently, the index -1 must be explicitly set after rerendering the <code>WComboBox</code> contents. This was an easy fix, but another issue remains.</p>
<p>When the reset-button is clicked, the JS update is something like this:</p>
<pre><code>Wt._p_.addTimerEvent('o1x', 0,-1);
setTimeout(function() { j4.selectedIndex=-1;}, 0);
Wt4_6_0.setHtml(j4,'<option value="0">blah</option>');
</code></pre>
<p>The timer event will run before the code that sets the index to -1, so it will report index 0.</p>
Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=369832021-12-02T09:46:56ZKorneel Dumonkorneel@emweb.be
<ul><li><strong>Target version</strong> set to <i>4.6.1</i></li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=379472021-12-23T14:24:57ZRoel Standaertroel@emweb.be
<ul><li><strong>Target version</strong> changed from <i>4.6.1</i> to <i>4.6.2</i></li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=387512022-01-24T12:17:36ZKorneel Dumonkorneel@emweb.be
<ul><li><strong>Status</strong> changed from <i>InProgress</i> to <i>Review</i></li><li><strong>Assignee</strong> deleted (<del><i>Korneel Dumon</i></del>)</li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=392202022-02-07T14:30:17ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Review</i> to <i>Implemented @Emweb</i></li><li><strong>Assignee</strong> set to <i>Korneel Dumon</i></li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=392212022-02-07T14:34:18ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Implemented @Emweb</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul> Wt - Bug #9424: WComboBox unexpectedly changes the current index after the model is reset.http://redmine.emweb.be/issues/9424?journal_id=405962022-03-10T16:44:23ZRoel Standaertroel@emweb.be
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>