Skip to content

Unchecked value should always be a string if not null #24

Description

@jho406

This makes it consistent with hidden input values in HTML. Which is how unchecked values are used.

Relevant snippet In check_box.rb,

module FormProps
  module Inputs
    class CheckBox < Base
      def initialize(object_name, method_name, template_object, checked_value, unchecked_value, options)
        @checked_value = checked_value
        @unchecked_value = unchecked_value
        super(object_name, method_name, template_object, options)
      end

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