Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix: Set focus to Name field when adding a new Bean #2012

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

igarashitm
Copy link
Contributor

Fixes: #2002

It turned out the <AutoFields> is just a simple iterator of <AutoField> and once it's inlined it's easy to put inputRef to the first field.
cf. https://uniforms.tools/docs/faq/#how-can-i-make-my-form-autofocused

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #2012 (54593c9) into main (3f973f4) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2012      +/-   ##
==========================================
+ Coverage   64.78%   64.88%   +0.09%     
==========================================
  Files          87       87              
  Lines        2837     2845       +8     
  Branches      652      655       +3     
==========================================
+ Hits         1838     1846       +8     
  Misses        953      953              
  Partials       46       46              
Impacted Files Coverage Δ
src/components/metadata/MetadataEditorModal.tsx 86.95% <100.00%> (+1.71%) ⬆️

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.9% 3.9% Duplication

@lordrip lordrip merged commit dac606e into kaoto-archive:main Jun 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set focus to Name field when adding a new Bean
2 participants