Bug Tracker

Modify

Ticket #7123 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

<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:
Blocking: Blocked by:

Description

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

comment:1 Changed 4 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:2 Changed 4 years ago by snover

comment:3 Changed 4 years ago by snover

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

comment:4 Changed 4 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 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.