-
Notifications
You must be signed in to change notification settings - Fork 103
Inline Checkbox/Radio Fixes & Improvements #53
Inline Checkbox/Radio Fixes & Improvements #53
Conversation
Just had a thought... From an API standpoint, a radio is a radio, whether stacked or inline. A chainable inline() method could act more like a modifier, rather than specifying inline via your main inlineRadio() method.
Not sure how this would affect the original rendering issue. It might make things easier on that front, but idk. |
I just pushed a few commits, which make the I also added a few new failing tests for that |
Just noting that these tests will fail, specifically because these lines in the new inline() chainable modifier depends on this PR on your base form package. Lastly, the old {!! BootForm::radio('Hidden', 'visibility')->inline() !!}
{!! BootForm::checkbox('Hidden', 'visibility')->inline() !!}
{!! BootForm::inlineRadio('Hidden', 'visibility') !!}
{!! BootForm::inlineCheckbox('Hidden', 'visibility') !!} My only concern right now is that I removed this behaviour from if ($checked) {
$control->check();
} else {
$control->uncheck();
} I assume this is already handled by non-inline |
Can you update your code to use |
For sure, I'll take a look at this when I have chance. |
Done. |
Inline Checkbox/Radio Fixes & Improvements
Hugs for everyone. |
Hey @adamwathan, I just realized commit a39cc97 requires adamwathan/form 0.7.1 or greater. You have |
Sounds like an opportunity for a pull request. |
Can't figure out how to make tests pass, sorry.