Inplace field editor can't be typed into when issue is opened in a board modal #3192
Iseldore opened 11 hours ago

On an issue board, open an issue in the modal, then click the edit icon of a custom field in the side panel. The inplace editor shows up, but the input never gets the caret and you can't type anything. It looks like it's disabled, though it has neither disabled nor readonly.

The same field works fine on the regular issue page, where there is no modal.

Looks like the cause is Bootstrap's modal focus trap. The inplace editor is a .floating panel appended to body, so it sits outside the modal. When it takes focus, Bootstrap's focusin handler (_enforceFocus) gives it back to the modal. In the browser, input.focus() leaves document.activeElement on div.modal.

Possible fixes:

  • open the modal with focus: false in onedev.server.modal.onDomReady
  • or make the focusin handler ignore events coming from body>.floating
1/1
Type
Bug
Priority
Minor
Assignee
Affected Versions
OneDev 16.9.1
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-3192
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover