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

TypeError: Cannot read property 'width' of undefined #870

Closed
9 tasks
hdewaart opened this issue Feb 13, 2017 · 0 comments
Closed
9 tasks

TypeError: Cannot read property 'width' of undefined #870

hdewaart opened this issue Feb 13, 2017 · 0 comments
Labels

Comments

@hdewaart
Copy link

hdewaart commented Feb 13, 2017

version 4.3.7 gives a error when using:

'initialPreview' => ['<img src="whatever image">'],

on the line 2198 in fileinput.js, this is the error line.
footer = foot || self._renderFileFooter(caption, size, config.width, isError),

It looks like config is undefined.

A rollback to version 4.3.6, then it's working fine.

Environment

Browsers

  • [ x] Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • Windows
  • Mac OS X
  • [x ] Linux
  • Mobile

Libraries

  • jQuery version:
  • bootstrap-fileinput version:

Isolating the problem

  • This bug happens on the plugin demos page
  • The bug happens consistently across all tested browsers
  • [x ] This bug happens when using bootstrap-fileinput without other plugins
  • I can reproduce this bug in a jsbin
@kartik-v kartik-v added the bug label Feb 13, 2017
ert78gb added a commit to ert78gb/bootstrap-fileinput that referenced this issue Mar 3, 2017


* 'master' of https://github.com/kartik-v/bootstrap-fileinput: (269 commits)
  Ensure events are namespaced correctly
  Update message for single file upload
  Updates to release v4.3.9 fixes kartik-v#863 fixes kartik-v#887
  Updates to release v4.3.9 fixes kartik-v#875 fixes kartik-v#885 fixes kartik-v#886
  Updates to release v4.3.9
  Fix kartik-v#882: Correct image resize validation
  Update es.js
  Updates to release v4.3.8
  Updates to locales
  Added Russian translation for msgUploadEmpty
  Fix kartik-v#874: Enhance/Standardize CSS Styles for Krajee Default Theme
  Fix noFilesSelected in es.js
  Fix kartik-v#872: Correct typo in `bootstrap.min.css`
  Updates to release v4.3.8
  Fix kartik-v#870: Correct config.width parsing
  Update to release v4.3.7
  Updates to release v4.3.7
  Updates to release v4.3.7
  Updates to release v4.3.7
  Correct function typo
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants