Skip to content

Feature Request: Focus / Blur events #2181

Closed

Description

@the-reality-engineer

Pretty self-explanatory. It would be useful to have focus and blur events (to mirror the DOM terminology) that are raised for a textfield, searchbar, or any other controls that can gain or lose focus. Also would be good to have a way to determine if a view currently has focus or not, like a hasFocus property.

Activity

  1. NathanWalker commented on Oct 3, 2016

    @NathanWalker
    Contributor

    Alongside this pseudo selectors would be needed for theme project:

    TextField:focus {  color: blue; }
    

    for example.

  2. dbenninger commented on Nov 25, 2016

    @dbenninger

    I can't believe there is no focus and blur event.

    Has someone found a workaround?

  3. atellmer commented on Jan 27, 2017

    @atellmer

    You may emulate focus/blur event with tap event and other. It is temporary decision, but it is works fine

  4. EddyVerbruggen commented on Aug 21, 2017

    @EddyVerbruggen
    Contributor

    FYI: There is a blur event these days. I'm thinking of doing a PR for focus as well.

  5. EddyVerbruggen commented on Aug 22, 2017

    @EddyVerbruggen
    Contributor

    #4730 pending review 🤞

  6. nabil-mansouri commented on Aug 24, 2017

    @nabil-mansouri

    This feature will be added in the next release? I find it really important

  7. added
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Aug 25, 2017
  8. added this to the milestone on Aug 25, 2017
  9. EddyVerbruggen commented on Aug 25, 2017

    @EddyVerbruggen
    Contributor

    @nabil-mansouri The PR has been merged, so 3.2 it will be - and you can grab tns-core-modules@next right now if you can't wait! 😃

  10. removed
    ready for testTSC needs to test this and confirm against live production apps and automated test suites
    on Aug 28, 2017
  11. lock commented on Aug 28, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  12. locked and limited conversation to collaborators on Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions