You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetValue returns the value of the field.func (s*Select[T]) GetValue() T {
return*s.value
}
Or as a pointer.
// GetValue returns the value of the field.func (s*Select[T]) GetValue() *T {
returns.value
}
This may affect other input types, I did not really check. I can definitely contribute as well if a change like this makes sense. ( May break compatibility so not sure )
The text was updated successfully, but these errors were encountered:
Hey @miniscruff, I believe this makes sense! However, we'll have to double check that this does not break the Bubble Tea examples as they rely on the GetValue to populate the values in the form which is an interface method on Field.
Hey @miniscruff, I believe this makes sense! However, we'll have to double check that this does not break the Bubble Tea examples as they rely on the GetValue to populate the values in the form which is an interface method on Field.
For sure it would be a change to the interface, even if beneficial it would probably be breaking something. If you think its worth it I can make a PR and look around for anything that breaks in this repo. If not, no worries.
@reavessm GetValue is an interface method but since it expects any I think using the generic will still satisfy it. Would love to double check that doesn't break anything for bubble tea examples and we can make the change!
I was playing around with huh and on the select input type there is a get value function and I am wondering why it returns
any
and notT
/*T
.This func specifically
huh/field_select.go
Lines 542 to 545 in 71f31c1
Should this be?
Or as a pointer.
This may affect other input types, I did not really check. I can definitely contribute as well if a change like this makes sense. ( May break compatibility so not sure )
The text was updated successfully, but these errors were encountered: