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

Zindex uib-datepicker problem with modal #708

Open
joweste opened this issue Nov 27, 2017 · 1 comment
Open

Zindex uib-datepicker problem with modal #708

joweste opened this issue Nov 27, 2017 · 1 comment

Comments

@joweste
Copy link

joweste commented Nov 27, 2017

Hi,

I have x-editable from with uib-bootstrap datepicker.
My problem is when I click the button to open o dropdown datepicker it remains behind the modal form. It´s a z-index problem.

Is there some settings to avoid ait?

<div class="modal-content">
  	<div class="modal-body">
		<uib-tabset active="activePill" vertical="false" type="pills">
          <uib-tab index="0" heading="Agendamento">		
			<tbody >
			   <tr ng-repeat="row in rowsDisplayed">
					<td width="30%"><span e-form="tableform" 
						e-name="VALIDADE"  onbeforesave="checkData($data)" id="mydataValor" 
						onshow="onShowForm(row,true)"  
						onhide="onShowForm(row,false)"
						editable-bsdate="row.VALIDADE" e-on-open-focus="false" 
						e-is-open="opened.$data" e-ng-click="open($event,'$data')"
						e-datepicker-popup="dd-MM-yyyy" e-datepicker-append-to-body="true">
							{{row.VALIDADE|date:'dd.MM.yyyy'}}
						</span>
					</td>

					<td style="white-space: nowrap" class="center_td_all" width="20%">
						   <div class="buttons" ng-show="!tableform.$visible">
							   <button title="Editar"  ng-click="tableform.$show()"
								   class="btn btn-warning btn-sm">
									<icon class="glyphicon glyphicon-edit"></icon>
							   </button>
							   <button title="Remover" ng-click="delete(row)" class="btn btn-danger btn-sm">
									<icon class="glyphicon glyphicon-remove"></icon>
							   </button>
						   </div>
						   <form editable-form name="tableform" onaftersave="saveItem(row)" 
							  ng-show="tableform.$visible" 
								   oncancel="canceledit()" class="form-buttons form-inline" shown="inserted == row">
								<button type="submit" ng-disabled="tableform.$waiting" class="btn btn-primary">
								  <i class="fa fa-floppy-o" aria-hidden="true"></i>&nbsp;Salvar
								</button>
								<button type="button" ng-disabled="tableform.$waiting" 
								ng-click="tableform.$cancel()" class="btn btn-success">
									<i class="fa fa-close"></i>&nbsp;Fechar
								</button>
						   </form>       
					</td>
				</tr>
			</tbody>
	    </uib-tab>
	</uib-tabset>
   </div>
</div>
@ckosloski
Copy link
Contributor

Maybe this link will help you.

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

No branches or pull requests

2 participants