davidworkman9 / meteor-editable

X-Editable inspired Meteor package for inline edits. Atmosphere: https://atmospherejs.com/workman/meteor-editable
MIT License
17 stars 12 forks source link

Client side error "string.replace is not a function" when clicking on editable text #10

Closed lukaszgrolik closed 8 years ago

lukaszgrolik commented 9 years ago

Dropdowns with inputs show up and values' changing works, but the error appears nonetheless.

I'm using meteor-editable 0.1.8 and meteor 1.0.2 (error also occurs on 1.0.0)

Full error:

"Exception from Tracker recompute function: string.replace is not a function
.camelCase@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:380:10
.style@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:6716:15
.css/<@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:6942:5
jQuery.access@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4155:1
.css@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:6925:1
resizePopover/<.replaceArrow@http://localhost:3000/packages/workman_meteor-editable.js?6b60156a357f558d06d0f2bea5b71781bf3216b5:6234:63
Tooltip.prototype.applyPlacement@http://localhost:3000/packages/mizzao_bootstrap-3.js?8d8f544e1328b7a62d76dbbbbf7d1fd5f559c919:1533:5
resizePopover@http://localhost:3000/packages/workman_meteor-editable.js?6b60156a357f558d06d0f2bea5b71781bf3216b5:6232:1
m_editable.rendered/<@http://localhost:3000/packages/workman_meteor-editable.js?6b60156a357f558d06d0f2bea5b71781bf3216b5:6215:13
Tracker.Computation.prototype._compute@http://localhost:3000/packages/tracker.js?7f0c5481709a504dd2254ba2a71c1cee78adc280:296:5
Tracker.Computation.prototype._recompute@http://localhost:3000/packages/tracker.js?7f0c5481709a504dd2254ba2a71c1cee78adc280:310:9
Tracker.flush@http://localhost:3000/packages/tracker.js?7f0c5481709a504dd2254ba2a71c1cee78adc280:440:9
["show .m_editable-popup"]@http://localhost:3000/packages/workman_meteor-editable.js?6b60156a357f558d06d0f2bea5b71781bf3216b5:6153:9
Template.prototype.events/eventMap2[k]</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:3147:16
attached_eventMaps/</</</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2389:22
Blaze._withCurrentView@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:12
attached_eventMaps/</</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2388:1
HandlerRec/this.delegatedHandler</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:839:14
jQuery.event.dispatch@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4656:15
jQuery.event.add/elemData.handle@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4325:6
jQuery.event.trigger@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4566:5
.trigger/<@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:5268:4
.each@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:417:14
jQuery.prototype.each@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:170:10
.trigger@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:5267:1
["click .editable-click"]@http://localhost:3000/packages/workman_meteor-editable.js?6b60156a357f558d06d0f2bea5b71781bf3216b5:6078:9
Template.prototype.events/eventMap2[k]</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:3147:16
attached_eventMaps/</</</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2389:22
Blaze._withCurrentView@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:12
attached_eventMaps/</</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2388:1
HandlerRec/this.delegatedHandler</<@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:839:14
jQuery.event.dispatch@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4656:15
jQuery.event.add/elemData.handle@http://localhost:3000/packages/jquery.js?265926494aaa3929cd2e30da265211c5929f37a4:4325:6
rampall commented 9 years ago

same issue here - any workarounds or fixes?

davidworkman9 commented 9 years ago

I believe this is related to some changes in the latest version of bootstrap. I recommend moving to another package I wrote that simply wraps x-editable: https://github.com/davidworkman9/x-editable-reactive-template

clemsos commented 9 years ago

same error here

davidworkman9 commented 9 years ago

@clemsos, is there something Meteor Editable does for you that x-editable-reactive-template doesn't?

clemsos commented 9 years ago

nope, I ended up using x-editable-reactive-template package as you suggested