Skip to content

Conversation

@fballiano
Copy link
Contributor

In the RWD theme, mobile version, when you click the search button here:

Screenshot 2023-03-16 alle 19 01 36

it shows the search field but you've to tap on it in order to be able to write the search query.

I think this is not the best behaviour, when clicking on the search button I'd like the search field to be shown with the focus already in the field, so that I can directly start to type without another (unnecessary) click.

This PR adds a few lines of js in order to implement that.

Note: there's a try/catch just in case a custom there doesn't have the #search field (although it's very unlikely).

@github-actions github-actions bot added the Template : rwd Relates to rwd template label Mar 16, 2023
@fballiano fballiano requested a review from addison74 March 24, 2023 10:12
Co-authored-by: Shyim <[email protected]>
@fballiano
Copy link
Contributor Author

fballiano commented Apr 2, 2023

@kiatng @addison74 what do you think about this?

@addison74
Copy link
Contributor

I haven't abandoned the ship. Unfortunately, the last month came with major changes in my life for which I was not prepared. I am trying to recover mentally, even though it's overwhelming.

I think that OpenMage should be rethought as a project based on sponsorships and thus a permanent maintenance team would have been built to work dedicatedly without any periods of inactivity.

@fballiano
Copy link
Contributor Author

@addison74 sorry to head that :-( wish you the best

@fballiano fballiano merged commit 0647cde into OpenMage:1.9.4.x Apr 3, 2023
fballiano added a commit that referenced this pull request Apr 3, 2023
@fballiano
Copy link
Contributor Author

@fballiano fballiano deleted the search_focus branch April 3, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Template : rwd Relates to rwd template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants