Bug Report T692239
Visible to All Users

iOS does not show a date picker popup for the dxDateBox field

created 6 years ago (modified 6 years ago)

It is not possible to open the date picker popup for the dxDateBox in iOS (tested in simulator with 12.1, also got a report of the issue from a real device).

This is my dxDateBox form item configuration:

JavaScript
let simulationStartDateItem: DevExpress.ui.dxFormSimpleItem = { dataField: "abc", name: "startDateItem", editorType: "dxDateBox", label: { text: "startDate" }, editorOptions: { acceptCustomValue: false, }, validationRules: [{ type: "required" } ], };

Am I missing some configuration option? I think this has worked before…

Show previous comments (1)

    Hi, it works for me in Chrome, in Safari on a Mac and in Safari on the iOS Simulator v12.1.
    It does not work in the Cordova App running in the iOS Simulator v12.1.

    I was able to find out that it seems to be related to the readonly attribute of the input element:

    HTML
    <input autocomplete="off" id="dx_dx-588fd918-631c-c925-d3ae-91c636b509e9_startDate" class="dx-texteditor-input" aria-haspopup="true" aria-autocomplete="list" type="date" readonly="" spellcheck="false" tabindex="0" role="combobox" aria-required="true">

    When I remove the readonly attribute in the debugger, the date selection popup appears correctly.

    Do you have a Cordova app containing your widgets for testing? If not, I will try to prepare a simple example with cordova, however it might take a few weeks until I can do this.

    DevExpress Support Team 6 years ago

      We need additional time to check this case. Please bear with us.

      DevExpress Support Team 6 years ago

        While we are researching the issue, you can remove the read-only attribute from an input element as demonstrated in the following example:

        JavaScript
        $("#date").dxDateBox({ type: "date", value: now, acceptCustomValue: false, onContentReady: function(e) { e.element.find(".dx-texteditor-input").attr("readonly", null); } });

        Answers approved by DevExpress Support

        created 6 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.