openmct/platform/commonUI/browse
Pegah Sarram 715219c44d [Edit] Fix the issue with currentTarget being null and HTML being added on Enter
Remove the line break that is added when the return key is pressed.

Check the current target directly.

Use textContent for inline editing instead of innerHTML, which will hoist up some HTML content implicitly created around user input for a contenteditable span.

Note that there is a removeAllRanges in addition to a blur here; see
https://stackoverflow.com/questions/4878713/how-can-i-blur-a-div-where-contenteditable-true

Fix broken tests.

Fixes #1757
2017-10-13 11:50:40 -07:00
..
res/templates [Edit] Allow inline-editing the name only if the object is editable 2017-10-10 12:32:51 -07:00
src [Edit] Fix the issue with currentTarget being null and HTML being added on Enter 2017-10-13 11:50:40 -07:00
test [Edit] Fix the issue with currentTarget being null and HTML being added on Enter 2017-10-13 11:50:40 -07:00
bundle.js Inline edit object names (#1700) 2017-09-21 11:16:04 -07:00