Skip to content
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

Don't create datepicker input as readonly #8644

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

pauldambra
Copy link
Member

Changes

ANTD datepicker has both value and default value.

Setting value makes the input readonly. This didn't cause any issue when the picker was in a pop-up on the events page or a global filter on an insight. But in a series-specific filter it appeared you couldn't change the input even though the value was actually changing (e.g. correct network call was being made)

Before

2022-02-16when-immutable

After

2022-02-16 15 20 20

How did you test this code?

By running it locally and setting and changing date time filters

@pauldambra pauldambra merged commit bdce803 into master Feb 16, 2022
@pauldambra pauldambra deleted the fix_date_picker_bug branch February 16, 2022 16:07
@McKean
Copy link

McKean commented Feb 16, 2022

@pauldambra not sure if this is the right place to raise this issue but after testing it there are two issues:

  • When selecting a preset date (today, yestarday,...) the date is not populated in the field
  • After doing an initial selection via the preset date it's not possible to choose again via preset date as it disappears quickly
recording_20220216-174555.mp4

@pauldambra
Copy link
Member Author

pauldambra commented Feb 16, 2022

That second problem is almost certainly this issue #7970

Very frustrating!

EDsCODE added a commit that referenced this pull request Feb 16, 2022
* master: (48 commits)
  refactor update public jobs query (#8596)
  revert use atomics flag (#8575)
  fix max retries (#8647)
  Remove weekly email code (#8643)
  Set default value not value (#8644)
  Add ECS plugin server healthcheck (#8642)
  Query person_distinct_id2 not person_distinct_id (#8358)
  increase isNewPerson TTL to 4 hours (#8637)
  Refactor exportEvents buffer (#8573)
  Remove dead actions endpoint code (#8625)
  drop unused functions if instances have them (#8565)
  Disable browsable API outside of DEBUG (#8635)
  update dlq metrics order (#8636)
  Make self capture robust to errors (#8629)
  Delete old events-model adjacent code (#8623)
  Increase viewport size (#8632)
  Revert "Use insight short ID in `insightLogic` key also on the insight page (#8613)" (#8631)
  detect response error status of 0 as an error too (#8603)
  Allow disabling a plugin's logs (#8519)
  fix dlq logic for pagination (#8627)
  ...
@pauldambra
Copy link
Member Author

@McKean #8655 should fix the selection problem (but not the pop-up closing early one unfortunately)

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.

2 participants