Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-input value update issue #606

Closed
junaidurfjd opened this issue Nov 11, 2014 · 2 comments
Closed

md-input value update issue #606

junaidurfjd opened this issue Nov 11, 2014 · 2 comments

Comments

@junaidurfjd
Copy link

md-input remains focused even if the the text is deleted. i.e if I type "hello" and then remove it the input remains as it is focused.. and also the class "md-input-has-value" remains on the parent md-input-group element"

The issue lies somewhere with peace of code..

 // angular-material.js line 3930
  element.on('input', function() {
    var value = element.val();

    inputGroupCtrl.setHasValue(angular.isDefined(value) && value!==null);
  });
@junaidurfjd junaidurfjd changed the title md-input md-input value update issue Nov 11, 2014
@ThomasBurleson ThomasBurleson added this to the 0.7.0-rc1 milestone Nov 14, 2014
@ThomasBurleson
Copy link
Contributor

@Darwesh27 - if you delete the input text, why would it not remain focused?
The other issue is a bug.

@junaidurfjd
Copy link
Author

The problem is.. Even if I delete the input text and leave the input box.. It still remains focus.. IMO the model provided to it never becomes null. As to loose focus the model has to be null according to the code.

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

No branches or pull requests

3 participants