Skip to content

Commit 647c897

Browse files
authored
Merge pull request #30 from dipcode-software/feat/add-widget-vars
Added missing variable (attrs)
2 parents 682987a + 29c5083 commit 647c897

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [2.1.4] - 2019-05-10
8+
### Added
9+
- Added missing varible (attributes) to `BoundWidget` class
10+
711
## [2.1.3] - 2019-01-18
812
### Fixed
913
- Validate choice field if is not empty and if is not a valid choice

src/Bounds/BoundWidget.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class BoundWidget
1313
public $name;
1414
public $value;
1515
public $label;
16+
public $attrs;
1617

1718
public function __construct(array $data)
1819
{
@@ -21,6 +22,7 @@ public function __construct(array $data)
2122
$this->name = $data["name"];
2223
$this->value = $data["value"];
2324
$this->label = $data["label"];
25+
$this->attrs = $data["attrs"];
2426
$this->template = $data["template"];
2527

2628
unset($data["template"]);

0 commit comments

Comments
 (0)