Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Backspace not working properly when apply keyPressFilter

$
0
0
Hi,
When apply keyPressFilter in a textitem which has defaultValue, pressing back space key won't work when there is one last character left. The code below modified from http://www.smartclient.com/#formFilters to illustrate the problem.

Code:

isc.DynamicForm.create({
    fields: [
        {name: "name",
        title: "Name",
        type: "text",
        hint: "Mapped to uppercase",
        width: 200,
        characterCasing: "upper"
        },
        {name: "commission",
        title: "Commission",
        type: "text",
        defaultValue: 800,
        hint: "Numeric only [0-9.]",
        width: 100,
        keyPressFilter: "[0-9.]"
        }
    ]
});


Viewing all articles
Browse latest Browse all 4756

Trending Articles