Skip to content

[EuiSuperDatePicker] Support onFocus #4924

Closed

Description

@thompsongl

EuiSuperDatePicker should support onFocus. Given that there are multiple focusbale elements, the provided callback should likely only be called once on the initial element focus and not for each subcomponent focus event.

Activity

  1. ConaGo commented on Jul 2, 2021

    @ConaGo

    Hi, i would like to give this issue a shot

  2. thompsongl commented on Jul 6, 2021

    @thompsongl
    ContributorAuthor

    @ConaGo Go for it!

  3. ConaGo commented on Jul 8, 2021

    @ConaGo

    Hey, i implemented the change also added a test. Unfortunately this test will make another, seemingly unrelated test fail
    `
    $ cross-env NODE_ENV=test jest --config ./scripts/jest/config.json
    FAIL src/components/date_picker/super_date_picker/date_modes.test.ts (11.944s)
    ● dateMode › toRelativeString

    expect(received).toBe(expected) // Object.is equality
    
    Expected: "now"
    Received: "now-1s"
    
      55 | 
      56 |   test('toRelativeString', () => {
    > 57 |     expect(toRelativeString('2019-03-19T00:00:00.000Z')).toBe('now');   
         |                                                          ^
      58 |     expect(toRelativeString('2020-03-19T00:00:00.000Z')).toBe('now+1y');      59 |     expect(toRelativeString('2019-03-12T00:00:00.000Z')).toBe('now-1w');      60 |     expect(toRelativeString('2019-03-17T00:00:00.000Z')).toBe('now-2d');
      at Object.<anonymous> (src/components/date_picker/super_date_picker/date_modes.test.ts:57:58)
    

    `
    I made a pull request and hope we can resolve this issue together

  4. github-actions commented on Jan 4, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  5. added
    stale-issue
    on Jan 4, 2022
  6. removed
    stale-issue
    on Jan 4, 2022
  7. github-actions commented on Jul 4, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  8. added
    stale-issue
    on Jul 4, 2022
  9. added
    help wanted
    and removed
    stale-issue
    on Jul 5, 2022
  10. github-actions commented on Jan 1, 2023

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  11. added
    stale-issue
    on Jan 1, 2023
  12. github-actions commented on Jan 9, 2023

    @github-actions

    ❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

  13. added
    stale-issue-closed
    on Jan 9, 2023
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

    good first issuehelp wantedstale-issuestale-issue-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions