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

fix: empty string displayed as SelectDropdown title #3773

Merged
merged 4 commits into from
Mar 23, 2023
Merged

Conversation

imorland
Copy link
Member

Reverts the change to using extractText introduced in #3608

Whilst using extractText, the button title is rendered as an empty string. This PR reverts that change so that expected behaviour is restored.

Changes proposed in this pull request:

Reviewers should focus on:

Screenshot

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

Required changes:

  • Related documentation PR: (Remove if irrelevant)
  • Related core extension PRs: (Remove if irrelevant)

@imorland imorland requested a review from a team as a code owner March 21, 2023 17:06
Copy link
Member

@SychO9 SychO9 left a comment

Choose a reason for hiding this comment

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

@imorland was his tested locally and with the affected extensions? I haven't tested it myself

@davwheat
Copy link
Member

Could we also document what this issue was affecting (e.g., an example of an extension where this was a problem)?

@imorland
Copy link
Member Author

Example of fof/discussion-language:

Flarum 1.7.1:
image

With this patch:
image

@imorland
Copy link
Member Author

@imorland was his tested locally and with the affected extensions? I haven't tested it myself

Yes, tested locally - all good

Co-authored-by: David Wheatley <david@davwheat.dev>
@imorland imorland added type/bug prio/high javascript Pull requests that update Javascript code labels Mar 22, 2023
@imorland imorland added this to the 1.7.2 milestone Mar 22, 2023
@imorland imorland merged commit d684248 into main Mar 23, 2023
@imorland imorland deleted the im/select-component branch March 23, 2023 08:03
imorland added a commit that referenced this pull request Mar 23, 2023
* fix: empty string displayed as SelectDropdown title

* chore: remove import

* chore: ts-ignore

* Update framework/core/js/src/common/components/SelectDropdown.tsx

Co-authored-by: David Wheatley <david@davwheat.dev>

---------

Co-authored-by: David Wheatley <david@davwheat.dev>
imorland added a commit that referenced this pull request Mar 23, 2023
* fix: empty string displayed as SelectDropdown title

* chore: remove import

* chore: ts-ignore

* Update framework/core/js/src/common/components/SelectDropdown.tsx

Co-authored-by: David Wheatley <david@davwheat.dev>

---------

Co-authored-by: David Wheatley <david@davwheat.dev>
imorland added a commit that referenced this pull request Mar 23, 2023
* fix: empty string displayed as SelectDropdown title

* chore: remove import

* chore: ts-ignore

* Update framework/core/js/src/common/components/SelectDropdown.tsx

Co-authored-by: David Wheatley <david@davwheat.dev>

---------

Co-authored-by: David Wheatley <david@davwheat.dev>
imorland added a commit that referenced this pull request Mar 24, 2023
* fix: empty string displayed as SelectDropdown title

* chore: remove import

* chore: ts-ignore

* Update framework/core/js/src/common/components/SelectDropdown.tsx

Co-authored-by: David Wheatley <david@davwheat.dev>

---------

Co-authored-by: David Wheatley <david@davwheat.dev>
imorland added a commit that referenced this pull request Mar 24, 2023
* fix: empty string displayed as SelectDropdown title

* chore: remove import

* chore: ts-ignore

* Update framework/core/js/src/common/components/SelectDropdown.tsx

Co-authored-by: David Wheatley <david@davwheat.dev>

---------

Co-authored-by: David Wheatley <david@davwheat.dev>
@github-actions github-actions bot mentioned this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code prio/high type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants