ICEfaces
  1. ICEfaces
  2. ICE-6858

JavaScript error thrown when typing inside an inputText component used in a treeNode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2-EE-GA_P02, EE-1.8.2.GA_P03, 3.0, EE-3.0.0.BETA
    • Fix Version/s: EE-1.8.2.GA_P04, 3.1.0.BETA1, 3.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      When using an inputText component in the content section of a treeNode, a JavaScript error is thrown for every key press inside the inputText component.

      JavaScript error: G.firstChild is null

        Activity

        Hide
        Sebri Zouhaier added a comment -

        ICEfaces version : 1.8(.2)
        Use case : Using an input text as a node in tree to modify the display text, so I add a change value listener to submit the new value.
        It works fine but I get a JavaScript error : Object required (ice-extras.js) witch is caused by this instruction G&& G.firstChild.getAttribute and to avoid this js error I change it to BY G&&G.firstChild&&G.firstChild.getAttribute.

        Show
        Sebri Zouhaier added a comment - ICEfaces version : 1.8(.2) Use case : Using an input text as a node in tree to modify the display text, so I add a change value listener to submit the new value. It works fine but I get a JavaScript error : Object required (ice-extras.js) witch is caused by this instruction G&& G.firstChild.getAttribute and to avoid this js error I change it to BY G&&G.firstChild&&G.firstChild.getAttribute.
        Hide
        Mircea Toma added a comment -

        Added extra test to verify the existence of element's first child before operating on this child.

        Show
        Mircea Toma added a comment - Added extra test to verify the existence of element's first child before operating on this child.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: