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

I am getting required result but i am getting and an exception in my console and which is i am given below #3104

Open
ahmadbjs opened this issue Oct 13, 2020 · 0 comments

Comments

@ahmadbjs
Copy link

ahmadbjs commented Oct 13, 2020

Steps

  1.                       ` _react2.default.createElement(
       		'select',
       		{
       			name: 'account',
       			className: 'accountSelect chzn-select form-control',
       			defaultValue: this.state.account,
    
       			// onChange: this.onChangeAccount},
       			onChange:  $(".chzn-select").chosen().change(this.onChangeAccount)},
       		
       		accountNodes
       	),`
    
  2.              ` onChangeAccount: function onChangeAccount(e) {
       $(".chzn-select").trigger(
       account = parseInt(e.target.value),
       this.setState({ account: account }),
       this.setState({ address: 0 }),
       this.loadAddressesFromServer(account),
       $(".chzn-select").chosen("destroy"),
    
       );
                },`
    

Expected behavior

I am getting my desired result on my site but i am also getting those errors which is given below

Actual behavior

jquery.min.js:4 Uncaught TypeError: p.indexOf is not a function
at Object.trigger (jquery.min.js:4)
at HTMLSelectElement. (jquery.min.js:4)
at Function.each (jquery.min.js:2)
at m.fn.init.each (jquery.min.js:2)
at m.fn.init.trigger (jquery.min.js:4)
at Object.onChangeAccount (m2admin-salesperson-edit.js:207)
at HTMLSelectElement.dispatch (jquery.min.js:4)
at HTMLSelectElement.r.handle (jquery.min.js:4)
at Object.trigger (jquery.min.js:4)
at HTMLSelectElement. (jquery.min.js:4)

Environment

  • chzn version 1.8.7:

  • **jQuery 3.5.1 **:

  • Google Chrome:

  • Window 10:

Additional information

Any other information you want to share that is relevant to the issue being reported. This might include the lines of code that you have identified as causing the bug, or potential solutions and workarounds.

@ahmadbjs ahmadbjs changed the title I am getting required but i am getting and an exception in my console and which is i am given below I am getting required result but i am getting and an exception in my console and which is i am given below Oct 13, 2020
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

No branches or pull requests

1 participant