Skip to content

Uncaught TypeError: $(...).getValue is not a function #342

Closed
@tbtalbottjr

Description

@tbtalbottjr

We recently moved an old codebase from Prototype 1.7 to 1.7.1 because we are about to embark on an iterative rewrite using vue.js. Moving to 1.7.1 fixed some incompatibility issues that I don't recall off the top of my head. But we noticed that since moving to 1.7.1 we are getting the following error when used in mobile Safari or mobile Chrome:

application.js:2001 Uncaught TypeError: $(...).getValue is not a function
    at Object.set_criteria (application.js:2001)

where application.js has:

  set_criteria: function(num) {
    console.log('search_select_' + num)
    console.log($('search_select_' + num))
    var uid     = $('search_select_' + num).readAttribute("_uid");
    var val     = $('search_select_' + num).getValue();
    ...

This error also occurs using 1.7.2 and 1.7.3. The error does not occur in either desktop browser.

We are reverting to 1.7 for now until we can figure out this problem and will try to create a simplified repro case when I get a chance, but was wondering if this is a known issue. I can't find anything on it, so I wonder if there is a different incompatibility with another JS library we are using.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions