Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Nov 10, 2023
1 parent 19c1b61 commit bfa0e51
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions WebDriverAgentLib/Categories/XCUIElement+FBTyping.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,8 @@ - (BOOL)fb_clearTextWithSnapshot:(FBXCElementSnapshotWrapper *)snapshot
return YES;
}

NSString *placeholderValue = snapshot.placeholderValue;
if (nil != placeholderValue && [currentValue isEqualToString:placeholderValue]) {
// Short circuit if only the placeholder value left
return YES;
}

static NSString *backspaceDeleteSequence;
NSString *placeholderValue = snapshot.placeholderValue;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
backspaceDeleteSequence = [[NSString alloc] initWithData:(NSData *)[@"\\u0008\\u007F" dataUsingEncoding:NSASCIIStringEncoding]
Expand Down

0 comments on commit bfa0e51

Please sign in to comment.