Bug Tracker

Opened 6 years ago

Closed 6 years ago

#7123 closed bug (fixed)

<input|checkbox>.val(array-of-values) does not update checked attribute properly if array-of-values are numbers

Reported by: FondDuLac Owned by: john
Priority: low Milestone: 1.4.3
Component: attributes Version: 1.3.2
Keywords: radio, val() Cc:
Blocked by: Blocking:


Inside val(), value has been turned into a string if it is a number, but the same check and cast are not performed in the jQuery.InArray(this.value, value) when array[i] is === compared to value.

Change History (5)

comment:1 Changed 6 years ago by snover

  • Owner set to snover
  • Status changed from new to assigned

I have a patch for this, working on unit tests.

comment:3 Changed 6 years ago by snover

  • Component changed from unfiled to attributes
  • need changed from Review to Patch
  • Priority changed from undecided to low

comment:4 Changed 6 years ago by snover

  • need changed from Patch to Commit
  • Owner changed from snover to john
  • Status changed from assigned to new

comment:5 Changed 6 years ago by john

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.