-
Notifications
You must be signed in to change notification settings - Fork 124
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
Stop triggering autocomplete for non-auto complete fields. Support da… #4451
Conversation
…ta attribute based autocomplete types. Moves to a new autocomplete type choosing system that uses data[autocomplete-type] to declaritively select the type instead of just keying of certain field names. Does not remove the existing functionality, but is a baby step toward depricating it.
} else if(type === 'linked') { | ||
new LinkedData(element, url) | ||
} else { | ||
new Default(element, url) |
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.
Do not use 'new' for side effects no-new
element, | ||
url) | ||
} else if(type === 'linked') { | ||
new LinkedData(element, url) |
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.
Do not use 'new' for side effects no-new
{ excluding: exclude } | ||
) | ||
} else if(type === 'resource' ) { | ||
new Resource( |
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.
Do not use 'new' for side effects no-new
let type = element.data('autocomplete-type') | ||
let exlude = element.data('exclude-work') | ||
if(type === 'resource' && exclude.length > 0) { | ||
new Resource( |
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.
Do not use 'new' for side effects no-new
…ta attribute based autocomplete types.
Moves to a new autocomplete type choosing system that uses data[autocomplete-type] to declaritively select
the type instead of just keying of certain field names. Does not remove the existing functionality, but is
a baby step toward depricating it.
@samvera/hyrax-code-reviewers