jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput InputMode issue on touch device

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • InputMode issue on touch device #59078

    markus_ja
    Participant

    Hello,

    when the inputMode is set to ‘simple’ on an touch device, an error is thrown. To reprodcue that error, you can just test it on JSFiddle (http://jsfiddle.net/GtGWM/506/)

    $(“#jqxNumberInput”).jqxNumberInput({
    width: ‘250px’,
    height: ’25px’,
    theme: ‘energyblue’,
    spinButtons: true,
    symbol: ‘EUR ‘,
    inputMode: ‘textbox’
    });

    $(“#jqxNumberInput”).jqxNumberInput(‘val’, 3);
    $(“#jqxNumberInput”).jqxNumberInput({inputMode: ‘simple’});
    $(“#jqxNumberInput”).jqxNumberInput(‘val’, 10);

    If I set the inputMode to ‘simple’ on a touch device, it is set to ‘textbox’ on createInstance. After that the inputMode is set to simple, which throws an exception after the second value is set.

    InputMode issue on touch device #59086

    Peter Stoev
    Keymaster

    Hi markus_ja,

    On touch device, the input mode is set internally so don’t set it in your code after the widget’s initialization.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.