Sha256: 8902984b5ab9835fa742731dda2a8edc8efd8e99177111ec9235767173aa192f
Contents?: true
Size: 527 Bytes
Versions: 33
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module Phlexi module Form module Components module Concerns module HandlesInput include Phlexi::Form::Components::Concerns::ExtractsInput protected def build_attributes super # only overwrite id if it was set in Base attributes[:id] = field.dom.id if attributes[:id] == "#{field.dom.id}_#{component_name}" attributes[:name] = field.dom.name end end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems