mirror of
https://github.com/zoldar/jenot.git
synced 2026-01-03 14:32:54 +00:00
Select content instead of title on note focus
Only works for new note - edit note dialog might require special treatment.
This commit is contained in:
parent
dc3c9bc744
commit
d68d35e2c1
1 changed files with 1 additions and 1 deletions
|
|
@ -582,7 +582,7 @@ class NoteForm extends HTMLElement {
|
||||||
this.reminderPicker = this.querySelector("reminder-picker");
|
this.reminderPicker = this.querySelector("reminder-picker");
|
||||||
|
|
||||||
this.addEventListener("click", (e) => {
|
this.addEventListener("click", (e) => {
|
||||||
const textareaInside = e.target.querySelector("textarea");
|
const textareaInside = e.target.querySelectorAll("textarea")[1];
|
||||||
if (textareaInside) {
|
if (textareaInside) {
|
||||||
textareaInside.focus();
|
textareaInside.focus();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue