File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ - (void)setPlaceholderColor:(UIColor *)placeholderColor
104
104
105
105
- (void )setDefaultTextAttributes : (NSDictionary <NSAttributedStringKey, id> *)defaultTextAttributes
106
106
{
107
+ if ([_defaultTextAttributes isEqualToDictionary: defaultTextAttributes]) {
108
+ return ;
109
+ }
110
+
107
111
_defaultTextAttributes = defaultTextAttributes;
108
112
self.typingAttributes = defaultTextAttributes;
109
113
[self _updatePlaceholder ];
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ - (void)setPlaceholderColor:(UIColor *)placeholderColor
68
68
69
69
- (void )setDefaultTextAttributes : (NSDictionary <NSAttributedStringKey, id> *)defaultTextAttributes
70
70
{
71
+ if ([_defaultTextAttributes isEqualToDictionary: defaultTextAttributes]) {
72
+ return ;
73
+ }
74
+
71
75
_defaultTextAttributes = defaultTextAttributes;
72
76
[super setDefaultTextAttributes: defaultTextAttributes];
73
77
[self _updatePlaceholder ];
You can’t perform that action at this time.
0 commit comments