Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add new attribute initialvalue to the form-field #6007

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

Open
gongte1937 wants to merge 6 commits into aws-amplify:main
base: main
Choose a base branch
Loading
from gongte1937:chore/Add-default-value-for-amplify-text-field-in-angular

Conversation

@gongte1937
Copy link
Contributor

@gongte1937 gongte1937 commented Nov 5, 2024

Description of changes

Update the form-field.component and FormFieldOptions so the form could accept default value input.

Issue #, if available

It is regarding to this issue

Description of how you validated changes

I have used yarn build and yarn pack to pack the package and install it from my project, and tested the functionality. And it works fine.

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gongte1937 gongte1937 requested a review from a team as a code owner November 5, 2024 05:03
Copy link

changeset-bot bot commented Nov 5, 2024
edited
Loading

🦋 Changeset detected

Latest commit: 9230d49

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@aws-amplify/ui-angular Patch
@aws-amplify/ui Patch
@aws-amplify/ui-react-auth Patch
@aws-amplify/ui-react-core-auth Patch
@aws-amplify/ui-react-core-notifications Patch
@aws-amplify/ui-react-core Patch
@aws-amplify/ui-react-liveness Patch
@aws-amplify/ui-react-native-auth Patch
@aws-amplify/ui-react-native Patch
@aws-amplify/ui-react-notifications Patch
@aws-amplify/ui-react-storage Patch
@aws-amplify/ui-react Patch
@aws-amplify/ui-vue Patch
@aws-amplify/ui-react-geo Patch
@aws-amplify/ui-test-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor Author

can someone take a look at this PR

Copy link
Member

@tiffanynwyeung tiffanynwyeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gongte1937, sorry for the delayed response. If you're still interested in implementing this feature, I've left some feedback. Thanks!

[name]="name"
[label]="formField.label"
[placeholder]="formField.placeholder"
[initialValue]="formField.value"
Copy link
Member

@tiffanynwyeung tiffanynwyeung Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that when running the Angular example app, the text field now adds "undefined" to the input.

/** Placeholder text */
placeholder?: string;
/** default value */
value?: string;
Copy link
Member

@tiffanynwyeung tiffanynwyeung Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is generally preferred to extend these FormFieldOptions; an example of this can be found here in our React package for Authenticator.

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

Reviewers

@tiffanynwyeung tiffanynwyeung tiffanynwyeung requested changes

@ashwinkumar6 ashwinkumar6 ashwinkumar6 approved these changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /