| Type |
Bug
|
| Priority |
Minor
|
| Assignee | |
| Affected Versions |
OneDev 16.9.1
|
| Labels |
No labels
|
Issue Votes (0)
| Type |
Bug
|
| Priority |
Minor
|
| Assignee | |
| Affected Versions |
OneDev 16.9.1
|
| Labels |
No labels
|
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
.floatingpanel 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()leavesdocument.activeElementondiv.modal.Possible fixes:
focus: falseinonedev.server.modal.onDomReadyfocusinhandler ignore events coming frombody>.floating