Open mjesuele opened 9 years ago
Yes, there's definitely something going wrong with the editable text package. It looks like the click event is being fired in some kind of infinite loop, but I can't see how that would be happening without looking at the larger code context.
Any chance you could put up a minimal repro somewhere? I just put together a little test app (below) and it's working as expected:
head
title test
body
+doc
template(name='doc')
with doc
h1
+editableText(collection='documents' field='title')
Documents = new Mongo.Collection('documents');
if (Meteor.isClient) {
Template.doc.helpers({
doc: function () {
return Documents.findOne();
}
});
}
if (Meteor.isServer) {
Meteor.startup(function () {
Documents.insert({title:"Test title"});
});
}
Why is this closed? I have the same issue, seems to be still unsolved
Is it jade or blaze that this is happening for @Mklueh ?
It is Blaze
Hi all,
I am attempting to use editable-text to allow users to change the title of a "stream" (chat room). When clicked, the text turns into an input box as expected, but if the text is edited, I get this stack trace upon losing focus (or enter being pressed) and the input field does not revert to plain text. There is no error if the text is not edited, and the input field does revert.
Those last three calls are repeated over and over. What is causing this recursive loop?
For reference, here is the Jade template:
I am using the following versions:
You can see the issue for yourself by going to my beta app, creating an account, creating a stream (using the text field on the left panel), and then clicking on the title 'New stream'.
Please let me know if there's any other helpful information I can provide.