Skip to content

Conversation

@joshi1983
Copy link

…d corresponding output files

This bug and fix was mentioned in #3817

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

Like the commit says, I applied a fix mentioned in the comments of that issue. It fixed problems for me and I wanted to share the fix with any other select2 user.

-#3917

If this is related to an existing ticket, include a link to it as well.

@jpic
Copy link
Contributor

jpic commented Feb 6, 2017

Nice patch ! Can you add a test case ? 🎸

this.$element.val(this.placeholder.id).trigger('change');
} else {
this.$element.val('').trigger('change');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@joshi1983 joshi1983 Feb 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove the change from distribution but wonder why is the distribution tracked when it is generated off other sources? Or why is something tracked that we don't want updated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want it to create conflicts with other PRs, it'll be updated later. Looking forward to review the test case 🎸

Copy link
Contributor

@jpic jpic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes dist/ and needs a test

this.$element.val(this.placeholder.id).trigger('change');
} else {
this.$element.val('').trigger('change');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@joshi1983 joshi1983 Feb 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dist directory changes have been removed from the commit.

@joshi1983
Copy link
Author

joshi1983 commented Feb 6, 2017

I removed the changes to the dist directory but creating a test for the bug in #3917 might take a while for me because I'd have to dig deeper into this bug and how the tests work while being pretty busy. I tried to trace the code and tests/selection/allowClear-tests.js seems like a good place for one but it could be a couple weeks. If that's too long, can someone else take my commit and finish off the test case?

@jpic
Copy link
Contributor

jpic commented Feb 13, 2017

No problem, I'd rather wait two months now, than see a regression in two months and have you redo your patch ^^

achimha pushed a commit to achimha/select2 that referenced this pull request May 9, 2017
@hxnan
Copy link

hxnan commented Nov 25, 2017

The same error I met.
I can not find this fix in the master now(2017-11-25 18:13).
Is this fix has't merge to the master or another fix ?

@joshi1983
Copy link
Author

@hxnan it isn't in master yet.

You could make the requested test and submit a new pull request that is more merge-able to help this fix get into master.

@stale
Copy link

stale bot commented Mar 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Mar 13, 2019
@joshi1983
Copy link
Author

joshi1983 commented Mar 13, 2019

Hopefully someone can finish my fix for this so the pull request doesn't get closed by the github stale bot. It still fixes the bug even though there's no automated test on it.

@stale
Copy link

stale bot commented May 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label May 18, 2019
@stale stale bot closed this May 25, 2019
LeSuisse added a commit to Enalean/tuleap that referenced this pull request Nov 27, 2019
The issue is due to a select2 issue [0][1][2][3][4], a
workaround that seem good enough for our context has been applied.

Part of story #14190: get email notifications on pull requests - first stage

[0] select2/select2#4323
[1] select2/select2#291
[2] select2/select2#4898
[3] select2/select2#3817
[4] select2/select2#4776

Change-Id: I2ae52204a41451b74ce40100588eac7ccca9823e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants