Editor datetime type on mobile

Editor datetime type on mobile

dbrody2004dbrody2004 Posts: 7Questions: 3Answers: 0

The datetime editor type requires the Enter button to be pressed after picking the time. Clicking outside of the picker doesn't save the value. This doesn't appear to work on mobile devices as there is no enter or okay button after selecting the datetime.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    I just tried with this example, and clicking outside the datepicker saved the value. Could you like to your page we could take a look, please, or update this example here.

    Colin

  • dbrody2004dbrody2004 Posts: 7Questions: 3Answers: 0

    You can see this at https://24.4.160.84/index.php.

    You can try a desktop. After picking the time you cannot click outside of the popup otherwise it does not save the entry. You have to press enter. This is the same for the "Mon" column - after changing a value you have to press enter to save it. I also verified this with a series of checkboxes as well - always having to press enter to save your checkboxes.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    That link is inaccessible. It's not a public-facing url.

  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin

    Its loading for me at the moment.

    If you change:

        $('#scheduleTable_550').on( 'click', 'tbody td', function (e) {
            editor.inline( this );
        } );
    

    to be:

        $('#scheduleTable_550').on( 'click', 'tbody td', function (e) {
            editor.inline( this, {
                onBlur: 'submit'
            } );
        } );
    

    That will resolve this issue. When the field loses focus, then it is automatically submitted if the value has changed.

    Allan

This discussion has been closed.