Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Form Item Icon with inline = true

    Hi
    I created a dynamic form with formitems having icons on left and right. The icon on the right is displayed when field is focussed. Each row in form have two fields.
    When the focus is on the first field the icon on the right is correctly displayed within the textfield. When the focus is on the second field the icon is displayed outside the textfield and is on the end of the screen

    The screenshots attached.

    When i set the inline = false, the icon on the right is correctly placed for both fields, but when the field is focused successively there is a an error displayed and icon on the right does not display. The error message in console is

    TypeError: Cannot read properties of undefined (reading 'ownerDocument') at _3.isc_c_Element_insertAdjacentHTML [as insertAdjacentHTML] (ISC_Core.js?v=2000000:3399:14) at _3.isc_FormItem__showIcon [as $185o] (ISC_Forms.js?v=2000000:1249:87) at _3.isc_FormItem__setIconVisibilityForFocus [as $1809] (ISC_Forms.js?v=2000000:1264:63) at _3.isc_FormItem_elementFocus [as elementFocus] (ISC_Forms.js?v=2000000:1675:221) at _3.isc_DynamicForm_bubbleItemHandler [as bubbleItemHandler] (ISC_Forms.js?v=2000000:799:10) at _3.isc_DynamicForm_elementFocus [as elementFocus] (ISC_Forms.js?v=2000000:820:9) at _3.isc_FormItem__nativeElementFocus [as $12v] (ISC_Forms.js?v=2000000:1673:50) at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js?v=2000000:325:93) at _3.isc_c_Class_Super [as Super] (ISC_Core.js?v=2000000:317:170) at _3.isc_TextItem__nativeElementFocus [as $12v] (ISC_Forms.js?v=2000000:2282:642) at Object.isc_c_FormItem___nativeFocusHandler [as $763] (ISC_Forms.js?v=2000000:936:11) at HTMLInputElement.isc_c_FormItem__nativeFocusHandler (ISC_Forms.js?v=2000000:931:357)

    We are using Isomorhic V13.1p

    Your input and suggestion is much appreciated. Thanks in Advance

    Thanks
    Attached Files

    #2
    Can you show code that reproduces the issue? Screenshots cannot be run to see the error, and even if we tried to construct the same UI (which isn't free), the problem could be a framework-wide or skin-level customization you have made elsewhere.

    Also make sure you have the latest patches 13.1p (see smartclient.com/builds).

    Comment

    Working...
    X