craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.29k stars 638 forks source link

Ctrl-S saved entry with Categories alerts 'unsaved' #4397

Closed narration-sd closed 5 years ago

narration-sd commented 5 years ago

Description

On leaving the entry page, I'm getting the unsaved alert. Full button Save is ok. This is an abso fresh Craft 3.1.30 site, installed on server via Composer. The few other entries without Categories act normally.

Steps to reproduce

  1. Make a Section with a Categories field
  2. Edit a first entry in it, filling in the Categories as desired
  3. Cntl-S save - normal response
  4. Try to leave the entry for any other place: get improper unsaved alert
  5. Button Save - leaves normally, no alert

Additional info

narration-sd commented 5 years ago

Extra credit: The reporting interface on Dashboard needs to not add more than the first sentence or N characters to the Github issue title. You can see the mess this made....

brandonkelly commented 5 years ago

I’m not able to reproduce this. Suspect it’s another field at fault; maybe Redactor?

narration-sd commented 5 years ago

Hmm. A fully fresh install, just title, body, cat fields, but I'll try to have a further look.

narration-sd commented 5 years ago

Hmm. This is a pretty weird one.

jquery.js:5481 Uncaught TypeError: r.shift is not a function
    at HTMLBodyElement.handler (jquery.js:5481)
    at HTMLBodyElement.dispatch (jquery.js:5233)
    at HTMLBodyElement.v.handle (jquery.js:5040)
    at Dom.<anonymous> (redactor.js:873)
    at Dom.each (redactor.js:245)
    at Dom.trigger (redactor.js:858)
    at s.constructor.onEditorBlur (RedactorInput.js:182)
    at s._loop (redactor.js:2842)
    at s.trigger (redactor.js:2812)
    at App.broadcast (redactor.js:2280)
brandonkelly commented 5 years ago

Hm, not sure. If you can come up with steps to reproduce it reliably, maybe send in your composer.json and composer.lock files, plus a database dump and the steps to reproduce, to support@craftcms.com, and we can look into it from there.

narration-sd commented 5 years ago

Right, and I woke up this morning mulling this for a moment, which brought the following insight:

I'll pull that plugin out and see if this ghost goes away, if so, will close issue.

Thanks for this attention, and don't give it more please, unless we find something really apropos. That plugin's squirrreling all over this as I write, reminding how engaged it is in watching everything in this plain textarea field, making underlines over words but also phrases in which it takes an interest....

narration-sd commented 5 years ago

Oh, you did close - fine, and again, thanks. You know how it is in getting up a release ;)