Skip to content

Commit 90de72d

Browse files
committed
Fix Datalist bug
1 parent e7f8f85 commit 90de72d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Ajax/semantic/html/elements/html5/HtmlDatalist.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
<?php
2-
32
namespace Ajax\semantic\html\elements\html5;
43

54
use Ajax\common\html\HtmlDoubleElement;
65
use Ajax\common\html\HtmlCollection;
76

8-
class HtmlDatalist extends HtmlCollection{
9-
10-
public function __construct($identifier){
11-
parent::__construct($identifier,"datalist");
7+
class HtmlDatalist extends HtmlCollection {
8+
9+
public function __construct($identifier) {
10+
parent::__construct($identifier, "datalist");
1211
}
13-
12+
1413
protected function createItem($value) {
15-
$elm= new HtmlDoubleElement("","option");
16-
$elm->setProperty("value", $value->getContent());
14+
$elm = new HtmlDoubleElement("", "option");
15+
$elm->setProperty("value", $value);
1716
$elm->setContent($value);
1817
return $elm;
1918
}
20-
21-
protected function createCondition($value){
19+
20+
protected function createCondition($value) {
2221
return true;
2322
}
2423
}

0 commit comments

Comments
 (0)