Skip to content
Snippets Groups Projects
Commit 14a658bd authored by Piotr Po's avatar Piotr Po
Browse files

Merge branch 'devel' into 'master'

fix(attributes): fixed bug with the double name & type attribute

See merge request !12
parents e377cbfb aa996843
No related branches found
Tags 2.3.2
Loading
Pipeline #5510 failed with stages
in 1 minute and 24 seconds
# 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
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment