JSFiddle - React, Tailwind, and code Playground
by Archana Ganesan
HTML
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular-resource.js"></script>
<h2>
The dropdown gets enabled if I click anywhere other than the disabled dropdown
</h2>
<div ng-app="App" ng-controller="ctrl" style="border: 10px solid black;">
<div>
<select ng-disabled="disabled">
<option>Disabled DropDown</option>
</select>
<input type="text" ng-click="enable();" size="100" placeholder="Click here to enable the dropdown" />
<select>
<option>Enabled dropdown</option>
</select>
</div>
</div>
JavaScript
var app = angular.module('App', []);
function ctrl($scope) {
$scope.disabled = true;
$scope.enable = function (disabled) {
$scope.disabled = false;
}
}