Skip to content

[6.x] Field focus/blur events and field locking#13974

Open
joshuablum wants to merge 1 commit into6.xfrom
collaboration-addon-support
Open

[6.x] Field focus/blur events and field locking#13974
joshuablum wants to merge 1 commit into6.xfrom
collaboration-addon-support

Conversation

@joshuablum
Copy link
Member

Both focused() and blurred() were still marked as todo but we need those for being able to update the collaboration addon to be compatible with v6.

Implementing the methods so they now emit field:focused and field:blurred events on Statamic.$events. Behavior is similar to <=v5 and a field is considered locked when lockedBy is set to a user other than the current user.

Shows the user avatar on the field that's locked to other users and applies pointer-events-none and select-none when locked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments