Skip to content

Commit

Permalink
Allow id and disabled to be passed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThompsonTLDR authored Oct 1, 2020
1 parent f5864a9 commit 098de5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Components/Bs.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Bs extends Component
* @param array $options
* @return void
*/
public function __construct($name, $type = null, $options = [], $value = null, $required = null, $label = null, $selected = null, $selectOptions = null, $checked = null, $placeholder = null, $formGroup = null, $groupClass = null, $labelClass = null, $dusk = null, $helper = null, $livewire = null)
public function __construct($name, $type = null, $options = [], $value = null, $required = null, $label = null, $selected = null, $selectOptions = null, $checked = null, $placeholder = null, $formGroup = null, $groupClass = null, $labelClass = null, $dusk = null, $helper = null, $livewire = null, $id = null, $disabled = null)
{
// convert from dot syntax to HTML syntax
$name = str_replace('.', '[', $name) . ((Str::of($name)->contains('.')) ? ']' : '');
Expand Down

0 comments on commit 098de5d

Please sign in to comment.