Skip to content

FormController#setValue() boolean型の値でcheckboxの値を設定できない #538

Description

@mtakeuchi

boolean型の値でcheckbox要素の値を更新できない。

(HTML)

<form>
  <input type="checkbox" name="chk1">
</form>

(JS)

var data = {
  chk1: true
}

this.formController.setValue(data);

以下のコードの厳密比較が不要と思われる。
h5.ui.FormController.js l.2178

$(this).prop('checked', $(this).val() === value);

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions