Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix(macTime): Re-render time input view even when viewValue is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Sep 7, 2014
1 parent 6201c72 commit 695078e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/directives/time.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ angular.module("Mac").directive "macTime", [
updateInput = ->
displayTime = $filter("date") time.getTime(), "hh:mm a"

unless displayTime is ngModelCtrl.$viewValue
ngModelCtrl.$setViewValue displayTime
ngModelCtrl.$render()
ngModelCtrl.$setViewValue displayTime
ngModelCtrl.$render()

updateTime = ->
if timeMatch = util.timeRegex.exec ngModelCtrl.$modelValue
Expand Down

0 comments on commit 695078e

Please sign in to comment.