Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Bootstrap 4 compatibility #77

Open
DSpeichert opened this issue Feb 26, 2018 · 13 comments
Open

Bootstrap 4 compatibility #77

DSpeichert opened this issue Feb 26, 2018 · 13 comments

Comments

@DSpeichert
Copy link

After struggling with the HeaderSettings component (the settings drop down was not opening), I realized this component depends on Bootstrap 3.

With Bootstrap 4, it is not opening the drop down without data-toggle="dropdown" on the button, and then with it, it's not opening the nested drop-down (for Save), it just closes the drop down completely. I'm quite sure that Bootstrap 4 does not support nested drop-downs.

@kenberkeley
Copy link
Collaborator

So, it seems that I have to revert this PR?
#62

@DSpeichert
Copy link
Author

I don't think that one is related.

I fixed opening the settings drop down on this line:

<button class="btn btn-default dropdown-toggle" ref="dropdownBtn" type="button">

(adding data-toggle="dropdown")

But then this one is broken, since it is nested:

<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button" style="box-shadow: none">

@kenberkeley
Copy link
Collaborator

well... so it does not support BS4 actually...

@DSpeichert
Copy link
Author

No, in fact it doesn't. I'm not sure it's quite possible to support both BS3 and BS4 at the same time.
I'd recommend at least making it clear in the documentation for now that it specifically needs BS3.

@kenberkeley
Copy link
Collaborator

ok i will correct it tomorrow

@chadidi
Copy link

chadidi commented May 18, 2018

@kenberkeley Can you guys add support to BS4 ASAP, I know you can't support both BS3 and BS4 but you can make a branch for BS3 and the master for the latest bootstrap version.

Thanks

@kenberkeley
Copy link
Collaborator

#116

@kenberkeley
Copy link
Collaborator

I not longer work for OneWay so you guys might have to on your own...

@chadidi
Copy link

chadidi commented May 18, 2018

Thanks for quick answer @kenberkeley. Who is the manager of the repository currently that can help us add BS4 support? or this repo is abandoned?

@kenberkeley
Copy link
Collaborator

I was the leader when in OneWay, now I left so nobody could handle... I am confident of this repo with BS3 so I will keep maintain it. In terms of BS4 compability, I hope you guys can help

@chadidi
Copy link

chadidi commented May 18, 2018

@kenberkeley OK I will try to do a pull request this weekend.

@vrajroham
Copy link

I managed to solve this by the following tweak, but applydropdown stopped working.

 // Added when table is rendered with little timeout
 $('div[name=HeaderSettings]').children('button[class*=dropdown-toggle]')[0].setAttribute('data-toggle','dropdown');

@victorhramos
Copy link

victorhramos commented Aug 21, 2018

Adding to this subject, this component doesnt support bootstrap 4 tabs.
If you use inside tabs tdComp and thComp wont work.

Look the difference
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants