[OPEN] [#1673] 4.8.3 - New bug on DateField select event
Support,
This gets interesting now :)
Test #1:
Go ahead and load page and click the date TRIGGER icon and you get the calendar properly.
[test passes]
Test #2:
Go ahead and FIRST press the "test" button. We get a popup. This is "expected" due to change in ext 4.8.3 that fires select on setValue. click ok
Now go ahead and click the date TRIGGER icon
Expectation: Get the calendar widget
Actual: We get the 'oh crap' popup.
Well that is unexpected :)
We certainly should NOT see the select event firing when I trigger the calendar widget from the DateField.
Thanks
/Z
Code:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>test</title>
<script type="text/javascript">
var movePeriodBySelect = function () {
alert('oh crap');
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" Theme="Triton">
</ext:ResourceManager>
<ext:Panel
ID="Window1"
runat="server"
Title="SetValue bug"
IconCls="x-fa fa-gears"
Width="200"
Height="350">
<TopBar>
<ext:Toolbar runat="server" Layout="Container">
<Items>
<ext:Toolbar runat="server" Flat="false">
<Items>
<ext:DateField ID="DateFieldTest" runat="server">
<Listeners>
<Select Handler="movePeriodBySelect()" />
</Listeners>
</ext:DateField>
</Items>
</ext:Toolbar>
</Items>
</ext:Toolbar>
</TopBar>
<Items>
<ext:Button runat="server" Text="test">
<Listeners>
<Click Handler="App.DateFieldTest.setValue('08/01/2019');" />
</Listeners>
</ext:Button>
</Items>
</ext:Panel>
</form>
</body>
</html>