basecamp / basecamp/trix

Autofocus can not be disabled in Node/ExpressJS and EJS

Open
#1,166 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

The autofocus on Node/Express --> EJS does not work when there is another text area

here is the code intended
![image](https://github.com/basecamp/trix/assets/76858044/dd46e1af-c707-4c33-950d-7c52fd6132df)

here is the page I'm building


![image](https://github.com/basecamp/trix/assets/76858044/744e03b7-1c52-4d5f-adb3-dc65c6759805)

the red point is the cursor which can't be moved to the upper text area -non trix area -

##### Details

* Trix version: 2.0.8
* Browser name and version: Chrome 126.0.6478.127
* Operating system: Windows 10

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported behavior in the Node/Express page using EJS, Trix 2.0.8, and the additional non-Trix textarea shown in the issue. First compare the intended autofocus setting with the cursor behavior in Chrome on Windows 10; done means autofocus can be disabled or focus can be moved to the upper textarea as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, node.js
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.