-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#5770 SK edit-in-place: focus appropriately when inline editing is initiated #32291
base: master
Are you sure you want to change the base?
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
Very cool @highfalutin - I like the idea of making a directive for this. There's probably some other uses for it too. Yea it's a lot of code but it's all neatly self-contained in the directive, so this looks good to me! |
a136822
to
45f2f29
Compare
Thanks @colemanw, I just made it slightly more tidy. It could be improved on but I'd be happy to see it merged. |
ext/search_kit/ang/crmSearchTasks/crmSearchInput/crmSearchInputFocus.directive.js
Outdated
Show resolved
Hide resolved
45f2f29
to
bd745f7
Compare
@colemanw I made the changes you suggested and removed an unnecessary $scope variable. |
Overview
Fixes dev/core#5770, at least partially - Fewer mouse clicks/keystrokes required to start editing in place in SearchKit.
Before
To actually get to a live cursor in a text field, or open the date picker, etc, multiple clicks/keystrokes are required.
After
In a table display with in-place-edit fields,
Technical Details
My first attempt here feels slightly heavy and stiff, with hard-coded if-else blocks which probably could be refactored so that new/custom widget types could be supported, other display types could be supported, etc. But it's a step in the right direction.
Comments