-
Notifications
You must be signed in to change notification settings - Fork 37
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
ember-4.x #370
Conversation
4a9b392
to
43a89a5
Compare
|
||
@forbidExtraArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 This should be nice for helping with the arg rename
addon/modifiers/clipboard.js
Outdated
clipboard.on(event, () => { | ||
if (!element.disabled) { | ||
const action = hash[`on${capitalize(event)}`]; | ||
action && action(...arguments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
action?.(...arguments)
@clipboardText="text to be copied" | ||
@success={{this.onSuccess}} | ||
@error={{this.onError}} | ||
@text='text to be copied' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make these all "
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, yeah, we usually have this, I think prettier did that.
42314c6
to
6c1d1de
Compare
BREAKING CHANGE: This commit contains many breaking changes: - Drops ember classic component support (glimmer only) - Drops support for `sendAction` - Requires ember-auto-import 2.x - `<CopyButton>` component arg name changes: | Old Argument Name | New Argument Name | | ------------------ | -------------------------------------- | | `@clipboardText` | `@text` | | `@clipboardTarget` | `@target` | | `@clipboardAction` | `@action` | | `@success` | `@onSuccess` | | `@error` | `@onError` | | `@title` | no longer supported, pass as attribute | | `@disabled` | no longer supported, pass as attribute | | `@aria-label` | no longer supported, pass as attribute |
resolves #190