added isEqual to ItemDropDown
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
2a497082a0
commit
68a72f6b2e
@ -78,4 +78,21 @@ import VDS
|
||||
try container.encode(feedbackTextPlacement, forKey: .feedbackTextPlacement)
|
||||
try container.encodeModelIfPresent(action, forKey: .action)
|
||||
}
|
||||
|
||||
open override func isEqual(to model: any ModelComparisonProtocol) -> Bool {
|
||||
guard super.isEqual(to: model), let model = model as? Self else { return false }
|
||||
return options == model.options
|
||||
&& selectedIndex == model.selectedIndex
|
||||
&& showInlineLabel == model.showInlineLabel
|
||||
&& feedbackTextPlacement == model.feedbackTextPlacement
|
||||
&& action.isEqual(to: model.action)
|
||||
}
|
||||
|
||||
open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool {
|
||||
guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false }
|
||||
return options == model.options
|
||||
&& selectedIndex == model.selectedIndex
|
||||
&& showInlineLabel == model.showInlineLabel
|
||||
&& feedbackTextPlacement == model.feedbackTextPlacement
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user