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

placeholder not working #81

Open
krtschmr opened this issue Nov 24, 2016 · 1 comment
Open

placeholder not working #81

krtschmr opened this issue Nov 24, 2016 · 1 comment
Labels

Comments

@krtschmr
Copy link

=editable current_pack, :description , url: users_mod_pack_path(current_pack), placeholder: "Click to edit a description"

i would expect to read that text, instead it comes "Empty"

@MartinElvar
Copy link

I know that this is a bit late, but placeholder is the value used for input field itself. So after clicking.

You can still use the original options, take a look here http://vitalets.github.io/x-editable/docs.html#editable.

Hence. <td><%= editable customer, :name, url: customer_path(customer), value: customer.name, emptytext: 'my default text' %></td> Should work just fine. :)

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

No branches or pull requests

3 participants