Another victim here. Implemented a custom field type using select2, working fine for Jira issues but in Service Management issues inline edit mode does not play nice with select2. Using the select2 dropdown list will trigger closing of inline edit.
Major level, reported in 2018, still here in 2022. Really, Atlassian? Not even a workaround?
I had to kill the blur event completely. In my edit Velocity template:
JIRA.bind(JIRA.Events.INLINE_EDIT_STARTED, function(e, context, reason) {
JIRA.unbind(JIRA.Events.INLINE_EDIT_BLURRED);
});
The drawback is whenever the custom field type is present, user can no longer click outside of the inline edit to close it. They must click the check/cross buttons, press Esc or the shortcut keys. But inline edit works, select2 works.
Originally I wanted to cache the existing blur listeners, remove them on start of inline edit, and put them back when done. However the events are insufficient:
- On cancel, BEFORE_INLINE_EDIT_CANCEL is triggered. This one is fine.
- INLINE_EDIT_SAVE_COMPLETE gets triggered after the edit template gets reloaded. This means the cached listeners in JavaScript will be gone.
- INLINE_EDIT_BLURRED is also triggered on save, before the template reload. However, there is no data attached to distinguish it from the blur event from using select2.
Hi Atlassian Team,
We hit the same problem too.
if select2 can`t user,please give us another selectUI