Skip to content

Fix bug with inputs where prepend and append can't be combined #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2016

Conversation

MarkusBauer
Copy link

When using the FormHelper to create an input with the prepend and append key at the same time (additional html before and after the input control), it gets wrapped in two <div class="input-group">. This destroys the layout, at least in horizontal forms.

My fix is quite simple - I add an additional check for this case. Using array_unique on the $beforeClass array might be an alternative solution, but I did not check this.

Best regards
Markus Bauer

@Holt59 Holt59 merged commit 91e0382 into CakePHP-Bootstrap:master Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants