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

Textarea not working #622

Open
alliedarmour opened this issue Nov 25, 2019 · 1 comment
Open

Textarea not working #622

alliedarmour opened this issue Nov 25, 2019 · 1 comment

Comments

@alliedarmour
Copy link

alliedarmour commented Nov 25, 2019

The gem is great, but I think since the included autosize version is outdated, the :as => textarea isn't working anymore (at least for me).
It always says:

jQuery(...).autosize is not a function

If you get the error, you can't submit the request anymore.

Is there any workaround that anyone figured out?

@reedjosh
Copy link

Just worked around this myself.
Do yarn add autosize

Then...

import $ from 'jquery';
global.$ = jQuery;

import autosize from 'autosize';

$.fn.extend({autosize: autosize});

Autosize as a plugin is missing from the updated jQuery

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

No branches or pull requests

2 participants