Skip to content

Form not picking up dynamically displayed elements #27352

Answered by Bartmax
Bartmax asked this question in General
Discussion options

You must be logged in to vote

I think my issue is about dealing with null select.
Switching mental model from HTML form to C# Model made it clear.

This model represents more clearly the intent and also works with that HTML

        private string _os = "Windows";
        public string? OS
        {
            get => Platform == "Steam" ? _os : null;
            set => _os = value ?? "Windows";
        }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bartmax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant