Skip to content

Commit

Permalink
Merge pull request #227 from josher8/Accessibility-Fix
Browse files Browse the repository at this point in the history
Accessibility label on text field is no longer nil when there is no text
  • Loading branch information
jverdi authored Apr 17, 2023
2 parents 1fd3fb8 + 811bf17 commit 301f9f0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ - (void)showFloatingLabel:(BOOL)animated
else {
showBlock();
}

self.accessibilityLabel = self.floatingLabel.text;
}

- (void)hideFloatingLabel:(BOOL)animated
Expand All @@ -173,8 +171,6 @@ - (void)hideFloatingLabel:(BOOL)animated
else {
hideBlock();
}

self.accessibilityLabel = nil;
}

- (void)setLabelOriginForTextAlignment
Expand Down Expand Up @@ -202,6 +198,7 @@ - (void)setLabelOriginForTextAlignment

- (void)setFloatingLabelText:(NSString *)text
{
self.accessibilityLabel = text;
_floatingLabel.text = text;
[self setNeedsLayout];
}
Expand Down

0 comments on commit 301f9f0

Please sign in to comment.