SmartClient Version: SNAPSHOT_v11.1d_2016-10-07/AllModules Development Only (built 2016-10-07)
Chrome on OSX El Capitan
Hello, please try this code:
Then start typing in the email field, you'll see this error:
Chrome on OSX El Capitan
Hello, please try this code:
Code:
isc.DynamicForm.create({ ID: "testForm", fields:[{name:"email", browserInputType: "email"}] });
Code:
17:01:49.944:KPR4:WARN:Log:InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('email') does not support selection. Stack from error.stack: FormItem.getSelectionRange(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Forms.js:1171:159 FormItem._rememberPreChangeSelection(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Forms.js:1318:347 FormItem.rememberSelectionForUpdate(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Forms.js:1317:7 FormItem.handleKeyPress(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Forms.js:1305:481 [c]Class.invokeSuper(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Core.js:298:93 [c]Class.Super(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Core.js:290:170 TextItem.handleKeyPress(<no args: exited>) on [TextItem ID:isc_TextItem_4 name:email] @ ISC_Forms.js:1752:610 [c]EventHandler.bubbleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2028:89 [c]EventHandler.handleKeyPress(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1806:122 EventHandler._handleNativeKeyPress(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1803:11 [c]EventHandler.dispatch(_1=>[c]EventHandler.$kd(), _2=>[object KeyboardEvent]) on [Class EventHandler] @ ISC_Core.js:2106:108 HTMLDocument.eval(event=>[object KeyboardEvent]) @ [no file]:3:123
Comment