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

Dropdown Event Triggers Fails inside Modals #8

Closed
luyouxin84 opened this issue Aug 7, 2017 · 5 comments
Closed

Dropdown Event Triggers Fails inside Modals #8

luyouxin84 opened this issue Aug 7, 2017 · 5 comments
Assignees

Comments

@luyouxin84
Copy link

ratio and dropdown have css problem in amexio-window-pane
dropdown cant select, click event is not work

@pratikthecook
Copy link
Contributor

Please provide your usage source code

@luyouxin84
Copy link
Author

luyouxin84 commented Aug 7, 2017

i have try again.. i had use bootstrap4 origine dropdown , it not work too.
it look like bootstrape4 dropdown not work good in amexio-window-pane..

my code:

<amexio-window-pane [(showWindow)]="edit_condition_dispaly" [title]="'Employee Registration'" [closable]="true">



请选择一天


<a class="dropdown-item" (click)="ttt()">Action
Another action
Something else here


<amexio-radio-group [fieldLabel]="'选择一天'" name ="gender"
[fieldName]="'genderDemo'"
[dataReader]="'data'"
[displayField]="'day'"
[valueField]="'value'"
[radioGroupBindData]="week"
(selectedValue)="obj_edit.setSelectedGender($event)"
[column]="'3'">



<amexio-number-input [fieldLabel]="'开始时间(数字整数,24小时制)'" name="name"
[placeholder]="'数字整数,24小时制'" [(ngModel)]="obj_edit.must_time_start">

<amexio-number-input [fieldLabel]="'结束时间(数字整数,24小时制)'" name="name"
[placeholder]="'数字整数,24小时制'" [(ngModel)]="obj_edit.must_time_end">

例外时间


{{obj_edit.not_start}}


{{obj_edit.not_end}}


<amexio-checkbox [fieldLabel]="''" name="language"
[checkBoxGroupDownBindData]="checkboxGroupdata"
[dataReader]="'response.data'"
[displayField]="'language'"
[valueField]="'checked'"
(change)="test()"
[column]="'5'">

<div *ngIf="flag">
开始的时间:
<input type="datetime-local" class="layui-input" [(ngModel)]="obj_edit.not_start_new">
结束的时间:
<input type="datetime-local" class="layui-input" [(ngModel)]="obj_edit.not_end_new">








<amexio-btn [label]="'提交'" [type]="'primary'" (click)="update_condition()">

@luyouxin84
Copy link
Author

luyouxin84 commented Aug 7, 2017

i find solution 👍
u must use dropdown with <button > as menu , it work find in window-pane. Not use <a> as menu
example in bootstrape 4 site.
https://v4-alpha.getbootstrap.com/components/dropdowns/#menu-items

code example:
<amexio-window-pane [(showWindow)]="edit_condition_dispaly" [title]="'Employee Registration'" [closable]="true"> <amexio-pane-body> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Dropdown </button> <div class="dropdown-menu" aria-labelledby="dropdownMenu2"> <button class="dropdown-item" type="button" (click)="ttt()">Action</button> <button class="dropdown-item" type="button">Another action</button> <button class="dropdown-item" type="button">Something else here</button> </div> </div> </amexio-window-pane>

@pratikthecook
Copy link
Contributor

Thankyou @luyouxin84 for reporting and providing a workaround, as you have mentioned this is indeed a bug not from our side but from the bootstrap team itself here's the link to the issue Issue.
As you can see the bootstrap is in alpha stages, we expect they would resolve it soon. Till Then we would implement a workaround.

@pratikthecook pratikthecook changed the title maybe css problem Dropdown Event Triggers Fails inside Modals Aug 9, 2017
@pratikthecook
Copy link
Contributor

Resolved

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

No branches or pull requests

3 participants