Attempting to incorporate the Bootstrap Material design theme into my project, I have implemented a basic text input field using the code below:
<div class="form-control-wrapper">
<input class="form-control empty" type="text"></input>
<div class="floating-label">
Title
</div>
<span class="material-input"></span>
</div>
The output is as follows:
https://i.stack.imgur.com/op81h.png
However, upon entering text, the content and label seem to merge:
https://i.stack.imgur.com/eYKQd.png
Shouldn't the floating-label
disappear? What could be causing this issue?
All suggestions are appreciated!
[EDIT 2]
Below are all the imports in my <head>
:
<html ng-app="myApp">
<head>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<!-- Bootstrap -->
<link src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Bootstrap Material Design (https://github.com/FezVrasta/bootstrap-material-design) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/roboto.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/material-fullpalette.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/ripples.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/ripples.min.js"></script>
<!-- Angular -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script>
<!-- Custom scripts -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
</head>
<body>
<div ui-view></div>
</body>
</html>
Additionally, here's my main.html
which I load using Angular:
<form novalidate>
<div class="form-control-wrapper">
<input class="form-control empty" type="text"></input>
<div class="floating-label">
Title
</div>
<span class="material-input"></span>
</div>
</form>
[EDIT 3] I am also encountering issues with the provided fiddle. The problem persists even after testing in both Chrome and Firefox, both updated to the latest versions:
https://i.stack.imgur.com/9flOf.png
Your insights are highly valued. Do you have any possible solutions?