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

fix: scope error inside `generateHref` function when using `slugify` modifier #370

Closed
loga4 opened this Issue Sep 14, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@loga4

loga4 commented Sep 14, 2017

Error:

Uncaught TypeError: Cannot read property 'helper' of undefined
    at jquery.typeahead.min.js:10
    at String.replace (<anonymous>)
    at a.generateHref (jquery.typeahead.min.js:10)
    at jquery.typeahead.min.js:10
    at a.buildHtmlLayout (jquery.typeahead.min.js:10)
    at a.buildLayout (jquery.typeahead.min.js:10)
    at HTMLInputElement.<anonymous> (jquery.typeahead.min.js:10)
    at HTMLInputElement.dispatch (jquery-3.2.1.min.js:3)
    at HTMLInputElement.q.handle (jquery-3.2.1.min.js:3)
    at Object.trigger (jquery-3.2.1.min.js:4)

running-coder added a commit that referenced this issue Sep 16, 2017

@running-coder running-coder changed the title from Demo with Userv1 doesn't work to scope error inside `generateHref` function Sep 16, 2017

@running-coder

This comment has been minimized.

Owner

running-coder commented Sep 16, 2017

hey @loga4 thanks for reporting! it will be fixed in the next release, rare case when using the |slugify modifier when using the href option, ex: href: "{{url|slugify}}"

@running-coder running-coder added the Bug label Sep 16, 2017

@running-coder running-coder added this to the 2.10.1 milestone Sep 16, 2017

@running-coder running-coder changed the title from scope error inside `generateHref` function to scope error inside `generateHref` function when using `slugify` modifier Sep 16, 2017

@running-coder running-coder changed the title from scope error inside `generateHref` function when using `slugify` modifier to fix: scope error inside `generateHref` function when using `slugify` modifier Sep 16, 2017

running-coder added a commit that referenced this issue Sep 16, 2017

Version 2.10.1
Feature
- #368 add `cancelOnBackspace` for `multiselect` option
Fix
- #370 scope error inside `generateHref` function when using `slugify` modifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment