question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Select2 on `relationship` field (PRO) is squished

See original GitHub issue

Bug report

What I did

I added a CRUD::field('users')->type('relationship') to a field in a setupCreateOperation() function.

What I expected to happen

It would always display like this:

Edit_organization____FAST_Network_Admin_Panel

What happened

90% of the time, it displays like this:

Edit_organization____FAST_Network_Admin_Panel

What I’ve already tried to fix it

Nothing, really. It seems to be caused by some sort of race condition. To “fix” it, I refresh until I see it correctly.

Is it a bug in the latest version of Backpack?

Yes, upgraded to 5.0.18. backpack/pro is 1.0.17.

Backpack, Laravel, PHP, DB version

### PHP VERSION:
PHP 8.1.5 (cli) (built: Apr 21 2022 10:15:06) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.5, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.5, Copyright (c), by Zend Technologies
    with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

### LARAVEL VERSION:
v9.11.0@598a8c84d452a66b90a3213b1d67189cc726c728

### BACKPACK VERSION:
5.0.18@06ea421e44c353604ba56669e1fd3ac7a18981df

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
GRardBcommented, Jun 4, 2022

I can confirm it’s fixed! Thanks for the super quick work on this! And no need to apologize 😁

0reactions
pxpmcommented, Jun 4, 2022

Thanks @GRardB for the help here!

Cheers 🍻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common problems - The jQuery replacement for select boxes
Select2 does not function properly when I use it inside a Bootstrap modal. This issue occurs because Bootstrap modals tend to steal focus...
Read more >
Trademark FAQs - USPTO
Read frequently asked questions we receive from our customers.
Read more >
https://www.unigauge.com/wp-content/themes/Divi/ch...
Fixed some shortcut keys not being overridden in Select2 input fields. ... Fixed Divi Builder plugin not working correctly with Onetone Pro theme....
Read more >
honey select bone mod
If you saw any clothes that are broken (stretched into the ground) you probably were ... 72GB; honey-select-2-libido-dx-betterrepack-r3 - Downloader.
Read more >
When using Select2, field gets too narrow when there are no ...
Make use of the width option of select2 as follow : $('#example').select2({ placeholder: 'Select a month', width: "100%" });
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found