diff --git a/changelog.txt b/changelog.txt index 9dd3429419dd14c1d248634ad021fbc4aeb171dc..e8739c03b5d5b6c983aa89f7e1ba3aa2f18ad630 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ # Changelog +## [2.3.2] - 2020-11-30 +### Fixed +- Fixed bug with the double name & type attribute + ## [2.3.1] - 2020-10-20 ### Fixed - JsonNormalizedRenderer now renders only fields that can be converted to json diff --git a/src/Field/Traits/HtmlAttributes.php b/src/Field/Traits/HtmlAttributes.php index b336ef7453700aeb4de1c93b1cdb8a295292d708..df4f7608283875e284b4fdb9039d648c4deff21e 100644 --- a/src/Field/Traits/HtmlAttributes.php +++ b/src/Field/Traits/HtmlAttributes.php @@ -19,7 +19,7 @@ trait HtmlAttributes { * * @return string[] */ - public function get_attributes( $except = [] ) { + public function get_attributes( $except = [ 'name', 'type' ] ) { return array_filter( $this->attributes, function ( $value, $key ) use ( $except ) { return ! in_array( $key, $except, true ); }, ARRAY_FILTER_USE_BOTH );