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

Stop triggering autocomplete for non-auto complete fields. Support da… #4451

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Jul 16, 2020

…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

…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)

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)

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(

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(

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

@jeremyf jeremyf merged commit 9a56f78 into master Jul 16, 2020
@jeremyf jeremyf deleted the forward-port-pr-4449 branch July 16, 2020 17:43
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.

4 participants