function clickDirectoryHandler(e) {
            e.preventDefault();
            const inputEl = document.querySelector("input.filePath");
            const dir = e.target.getAttribute("value");
            const val = inputEl.value;
            const pos = inputEl.selectionStart;
            const newLeft = `${addDirToLoginPath(val.slice(0, pos), dir)}/`;
            inputEl.value = newLeft + val.slice(pos);
            inputEl.selectionStart = inputEl.selectionEnd = newLeft.length;
            this.state.setLogin(inputEl.value);
            inputEl.focus();
        }
Event handler for click, insert selected directory
for login file path.

@since 3.8.0

@param {object} e key event