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

#354 Fix onClicked warning if @type is "submit" #526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcjr
Copy link

@tcjr tcjr commented Jan 12, 2025

This is perfectly valid for submit buttons in a form:

<EsButton @type="submit" @label="Search" />

This PR removes the console warning (and stack trace) when a submit button has no onClicked attribute.

You can see it in the wild by looking at the console output for the component page for EsButton.

Fixes #354

Copy link

netlify bot commented Jan 12, 2025

Deploy Preview for ember-styleguide failed.

Name Link
🔨 Latest commit 04faf1e
🔍 Latest deploy log https://app.netlify.com/sites/ember-styleguide/deploys/6783e681d56e310008927da0

@tcjr tcjr changed the title Do not show onClicked warning if @type is "submit" #354 Fix onClicked warning if @type is "submit" Jan 12, 2025
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.

Warning "no onClicked" when button component is used with @type="submit" and no click handler
1 participant