Skip to content
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

Render error with Tomaj\BootstrapRenderer #16

Closed
zemnet opened this issue Nov 2, 2017 · 5 comments
Closed

Render error with Tomaj\BootstrapRenderer #16

zemnet opened this issue Nov 2, 2017 · 5 comments
Labels

Comments

@zemnet
Copy link

zemnet commented Nov 2, 2017

hi,
I have problem rendering on v. 2.0.0 with nette v2.4,
Form renderer: Tomaj \ BootstrapRenderer.

Div box is rendered with borders in front of reCaptcha box with wrong height ...
"<div class =" g-recaptcha form-control "autocomplete =" off "id =" frm-regForm-recaptcha "

If i remove form-control class, wotk fine, but how can I remove it on single control?

Thank you.

PS: On in 1.6 work fine ....

@f3l1x
Copy link
Member

f3l1x commented Nov 2, 2017

Well, it's look a like problem of BootstrapRenderer.

Could you please try?

{form}
{php $form['recaptcha']->controlPrototype->removeClass('form-control')}
{/form}

@f3l1x
Copy link
Member

f3l1x commented Nov 2, 2017

And also maybe could you please switch extending of ReCatpchaField from TextInput to BaseControl? It might help.

@zemnet
Copy link
Author

zemnet commented Nov 2, 2017

I don know why, but removeClass not working :( class isn't removed...
but switching to BaseControl works fine...

thank you..

@f3l1x
Copy link
Member

f3l1x commented Nov 10, 2017

Could you please send a PR with a patch? :-) I would be great.

@f3l1x f3l1x closed this as completed Nov 10, 2017
@f3l1x f3l1x added the bug label Nov 10, 2017
@zemnet
Copy link
Author

zemnet commented Nov 10, 2017

sorry, it's beyond my ability :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants