You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
I've tried messing with the trigger event but it just doesn't seem to work. In my Rails app I'm using contentEditable divs and need titles of entries to be filled when the user opens the entry. However, since the change trigger doesn't work the placeholder stays too.
I don't know why it is not working for you; it has always worked for me, but it might be a reasonable workaround for you to use :empty in CSS? That won't work for everyone, since the condition is also true with non-text content, but if it works in your case then it won't depend on events at all.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've tried messing with the trigger event but it just doesn't seem to work. In my Rails app I'm using contentEditable divs and need titles of entries to be filled when the user opens the entry. However, since the change trigger doesn't work the placeholder stays too.
Here's an example:
autoFill = function(){
$("#title-edit-partial").text("<%= @submission.title %>").trigger("change");
$("#content-edit-partial").text("<%= @submission.content %>").trigger("change");
}
The text was updated successfully, but these errors were encountered: